pygmi.grav.iodefs#
Routines to import gravity data and associated GPS data.
Classes#
Import CG-5 data. |
Functions#
|
Get CG-5 filename and load data. |
|
Get CG-6 filename and load data. |
|
Get GPS filename and load data. |
|
Import and merge GPS and gravity data. |
Module Contents#
- class pygmi.grav.iodefs.ImportCG5(parent)#
Bases:
pygmi.misc.BasicModuleImport CG-5 data.
This class imports CG-5 gravimeter data with associated GPS data.
- Parameters:
parent (pygmi.main.MainWidget) – Reference to the parent routine.
- 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.
- 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.
- pygmi.grav.iodefs.get_cg5(filename)#
Get CG-5 filename and load data.
- Parameters:
filename (str) – CG-5 filename.
- Returns:
df_cg5 – Gravity data
- Return type:
Pandas DataFrame
- pygmi.grav.iodefs.get_cg6(filename)#
Get CG-6 filename and load data.
- Parameters:
filename (str) – CG-6 filename.
- Returns:
df – Gravity data
- Return type:
Pandas DataFrame
- pygmi.grav.iodefs.get_gps(filename)#
Get GPS filename and load data.
- Parameters:
filename (str) – GPS filename (csv).
- Returns:
df2 – GPS data.
- Return type:
Pandas DataFrame
- pygmi.grav.iodefs.merge_gpsmag(cg5file, gpsfile, basethres=10000.0, cren=None, showlog=print)#
Import and merge GPS and gravity data.
- Parameters:
cg5file (str) – Gravity filename for data in CG format.
gpsfile (str) – GPS filename in CSV format.
basethres (float, optional) – Threshold for base station numbers. The default is 10000.
cren (dict) – Dictionary of columns to rename. The default is None.
showlog (function, optional) – Display information. The default is print.
- Returns:
Dataframe with merged data.
- Return type:
Pandas DataFrame