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#
|
_summary_ |
|
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#
Bases:
matplotlib.backends.backend_qtagg.FigureCanvasQTAggMatplotlib canvas widget for the actual plot.
- 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.ContextModulePlot Raster Class.
- Parameters:
parent (ProcessData, optional) – Reference to the parent routine. The default is None.
- class pygmi.grav.dataprep.ProcessData(parent=None)#
Bases:
pygmi.misc.BasicModuleProcess Gravity Data.
This class processes gravity data.
- Parameters:
parent (pygmi.main.MainWidget, 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='None', absbase=978032.67715, dens=2670, showlog=print)#
_summary_
- Parameters:
pdat (Pandas DataFrame) – _description_
basethres (float) – _description_
kstat (float) – _description_, by default ‘None’
absbase (float) – _description_, by default 978032.67715
dens (float) – _description_, by default 2670
showlog (function, optional) – _description_, by default print
pdat – Gravity data.
basethres – Threshold for base station numbers.
kstat – Known base station number, by default ‘None’
absbase – Known base station absolute gravity, by default 978032.67715
dens – Background Density (kg/m3), by default 2670
showlog – Display information. The default is print.
- Returns:
_type_ – _description_
Gravity corrections.
- 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