pygmi.mag.tiltdepth#
Tilt Depth Routine.
Based on work by EH Stettler
References
Salem et al., 2007, Leading Edge, Dec,p1502-5
Classes#
Primary class for the Tilt Depth. |
Functions#
Module Contents#
- class pygmi.mag.tiltdepth.TiltDepth(parent=None)#
Bases:
pygmi.misc.BasicModule
Primary class for the Tilt Depth.
- Parameters:
parent (parent, optional) – Reference to the parent routine. The default is None.
- self.mmc#
main canvas containing the image
- Type:
FigureCanvas
- setupui()#
Set up UI.
- Return type:
None.
- rtp_choice()#
Check if RTP must be done.
- Return type:
None.
- save_depths()#
Save depths.
- Returns:
True if successful, False otherwise.
- Return type:
bool
- change_cbar()#
Change the colour map for the colour bar.
- Return type:
None.
- calculate()#
Routine which occurs when apply button is pressed.
- Return type:
None.
- settings(nodialog=False)#
Entry point into item.
- Parameters:
nodialog (bool, optional) – Run settings without a dialog. The default is False.
- Returns:
True if successful, False otherwise.
- Return type:
bool
- saveproj()#
Save project data from class.
- Return type:
None.
- pygmi.mag.tiltdepth.tiltdepth(data, inc=None, dec=None, pbar=None)#
Calculate tilt depth.
Output is stored in self.outdata.
- Parameters:
data (pygmi.raster.datatypes.Data) – PyGMI raster dataset.
- Return type:
None.
- pygmi.mag.tiltdepth.distpc(dx, dy, dx0, dy0, dcnt)#
Find closest distances.
- Parameters:
dx (numpy array) – X array.
dy (numpy array) – Y array.
dx0 (float) – X point to measure distance from.
dy0 (float) – Y point to measure distance from.
dcnt (int) – Starting index to measure distance from.
- Returns:
dcnt – Index of closest distance found in x and y arrays.
- Return type:
int
- pygmi.mag.tiltdepth.vgrad(cnt)#
Get contour gradients at vertices.
- Parameters:
cnt (axes.contour) – Output from Matplotlib’s axes.contour.
- Returns:
gx (numpy array) – X gradients.
gy (numpy array) – Y gradients.
cgrad (numpy array) – Contour gradient.
cntid (numpy array) – Contour index.