pygmi.grav.dataprep#

A set of data processing routines for gravity.

Classes#

ProcessData

Process Gravity Data.

Functions#

geocentric_radius(lat)

Geocentric radius calculation.

theoretical_gravity(lat)

Calculate the theoretical gravity.

atmospheric_correction(h)

Calculate the atmospheric correction.

height_correction(lat, h)

Calculate height correction.

spherical_bouguer(h, dens)

Calculate spherical Bouguer.

time_convert(x)

Convert hh:mm:ss to seconds.

Module Contents#

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.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