pygmi.grav.dataprep#
A set of data processing routines for gravity.
Classes#
Matplotlib canvas widget for the actual plot. |
|
Plot Raster Class. |
|
Process Gravity Data. |
Functions#
|
Gravity corrections. |
|
Geocentric radius calculation. |
|
Calculate the theoretical gravity. |
Calculate the atmospheric correction. |
|
|
Calculate height correction. |
|
Calculate spherical Bouguer. |
|
Convert hh:mm:ss to seconds. |
Module Contents#
- class pygmi.grav.dataprep.MyMplCanvas(parent=None)#
Bases:
matplotlib.backends.backend_qtagg.FigureCanvasQTAgg
Matplotlib canvas widget for the actual plot.
- Parameters:
parent (parent, optional) – Reference to the parent routine. The default is None.
- update_raster(drift)#
Update the raster plot.
- Parameters:
drift (dict) – Dictionary containing information for drift plots.
- Return type:
None.
- class pygmi.grav.dataprep.PlotDrift(parent=None, data=None)#
Bases:
pygmi.misc.ContextModule
Plot Raster Class.
- Parameters:
parent (parent, optional) – Reference to the parent routine. The default is None.
- class pygmi.grav.dataprep.ProcessData(parent=None)#
Bases:
pygmi.misc.BasicModule
Process Gravity Data.
This class processes gravity data.
- Parameters:
parent (parent, optional) – Reference to the parent routine. The default is None.
- setupui()#
Set up UI.
- 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.
- acceptall(nodialog)#
Accept option.
Updates self.outdata, which is used as input to other modules.
- Return type:
None.
- calcbase()#
Calculate local base station value.
Ties in the local base station to a known absolute base station.
- Return type:
None.
- pygmi.grav.dataprep.gravcor(pdat, basethres, kstat, absbase, dens, showlog=print)#
Gravity corrections.
- Parameters:
pdat (Pandas DataFrame) – Gravity data.
basethres (float) – Threshold for base station numbers.
kstat (float) – Known base station number.
absbase (float) – Known base station absolute gravity.
dens (float) – Background Density (kg/m3).
showlog (function, optional) – Display information. The default is print.
- Returns:
pdat (Pandas DataFrame) – Gravity data.
drift (dict) – Dictionary containing information for drift plots.
- pygmi.grav.dataprep.geocentric_radius(lat)#
Geocentric radius calculation.
Calculate the distance from the Earth’s center to a point on the spheroid surface at a specified geodetic latitude.
- Parameters:
lat (numpy array) – Latitude in radians
- Returns:
R – Array of radii.
- Return type:
Numpy array
- pygmi.grav.dataprep.theoretical_gravity(lat)#
Calculate the theoretical gravity.
- Parameters:
lat (numpy array) – Latitude in radians
- Returns:
gT – Array of theoretical gravity values.
- Return type:
numpy array
- pygmi.grav.dataprep.atmospheric_correction(h)#
Calculate the atmospheric correction.
- Parameters:
h (numpy array) – Heights relative to ellipsoid (GPS heights).
- Returns:
gATM – Atmospheric correction
- Return type:
numpy array.
- pygmi.grav.dataprep.height_correction(lat, h)#
Calculate height correction.
- Parameters:
lat (numpy array) – Latitude in radians.
h (numpy array) – Heights relative to ellipsoid (GPS heights).
- Returns:
gHC – Height corrections
- Return type:
numpy array
- pygmi.grav.dataprep.spherical_bouguer(h, dens)#
Calculate spherical Bouguer.
- Parameters:
h (numpy array) – Heights relative to ellipsoid (GPS heights).
dens (float) – Density.
- Returns:
gSB – Spherical Bouguer correction.
- Return type:
numpy array
- pygmi.grav.dataprep.time_convert(x)#
Convert hh:mm:ss to seconds.
- Parameters:
x (str) – Time in hh:mm:ss.
- Returns:
Time in seconds.
- Return type:
float