pygmi.grav package

Submodules

pygmi.grav.dataprep module

A set of data processing routines for gravity.

class pygmi.grav.dataprep.ProcessData(parent=None)

Bases: BasicModule

Process Gravity Data.

This class processes gravity data.

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.

saveproj()

Save project data from class.

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

setupui()

Set up UI.

Return type:

None.

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.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.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.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.time_convert(x)

Convert hh:mm:ss to seconds.

Parameters:

x (str) – Time in hh:mm:ss.

Returns:

Time in seconds.

Return type:

float

pygmi.grav.iodefs module

Import Gravity Data.

class pygmi.grav.iodefs.ImportCG5(parent)

Bases: BasicModule

Import CG-5 data.

This class imports CG-5 gravimeter data with associated GPS data.

get_cg5(filename='')

Get CG-5 filename and load data.

Parameters:

filename (str, optional) – CG-5 filename submitted for testing. The default is ‘’.

Return type:

None.

get_gps(filename='')

Get GPS filename and load data.

Parameters:

filename (str, optional) – GPS filename (csv). The default is ‘’.

Return type:

None.

saveproj()

Save project data from class.

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

setupui()

Set up UI.

Return type:

None.

pygmi.grav.menu module

Gravity Menu Routines.

class pygmi.grav.menu.MenuWidget(parent=None)

Bases: object

Widget class to call the main interface.

This widget class creates menus to be found on the main interface. Normal as well as context menus are defined here.

parent

Reference to MainWidget class found in main.py

Type:

pygmi.main.MainWidget

import_data()

Import data.

process_data()

Process data.

Module contents

Gravity Routines