pygmi.vector.iodefs#
Import and export vector data.
Classes#
A combobox to select vector columns. |
|
GUI to import XYZ data. |
|
GUI to export XYZ data. |
|
GUI to export vector data. |
|
GUI to import vector data. |
Functions#
|
Get Geosoft XYZ. |
|
Get Intrepid Database. |
Module Contents#
- class pygmi.vector.iodefs.ColumnSelect(parent=None)#
Bases:
pygmi.misc.BasicModule
A combobox to select vector columns.
- Parameters:
parent (parent, optional) – Reference to the parent routine. The default is 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.
- class pygmi.vector.iodefs.ImportXYZ(parent=None)#
Bases:
pygmi.misc.BasicModule
GUI to import XYZ data.
This class imports tabular 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.
- get_GXYZ()#
Get Geosoft XYZ.
- Returns:
df – Pandas dataframe.
- Return type:
DataFrame
- get_delimited(delimiter=',')#
Get a delimited file.
- Parameters:
delimiter (str, optional) – Delimiter type. The default is ‘,’.
- Returns:
gdf – Pandas dataframe.
- Return type:
Dataframe
- get_excel()#
Get an Excel spreadsheet.
- Returns:
gdf – Pandas dataframe.
- Return type:
Dataframe
- class pygmi.vector.iodefs.ExportXYZ(parent=None)#
Bases:
pygmi.misc.ContextModule
GUI to export XYZ data.
- Parameters:
parent (parent, optional) – Reference to the parent routine. The default is None.
- run()#
Entry point into the routine, used to run context menu item.
- Returns:
True if successful, False otherwise.
- Return type:
bool
- class pygmi.vector.iodefs.ExportVector(parent=None)#
Bases:
pygmi.misc.ContextModule
GUI to export vector data.
- Parameters:
parent (parent, optional) – Reference to the parent routine. The default is None.
- run()#
Entry point into the routine, used to run context menu item.
- Returns:
True if successful, False otherwise.
- Return type:
bool
- class pygmi.vector.iodefs.ImportVector(parent=None)#
Bases:
pygmi.misc.BasicModule
GUI to import vector 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
- change_bounds()#
Change the bounds combo.
- get_sfile()#
Get the filename and crs and bounds.
- set_bounds(bounds)#
Set the bounds.
- Parameters:
bounds (list or numpy array) – Bounds defined as (xmin, ymin, xmax, ymax).
- Return type:
None.
- saveproj()#
Save project data from class.
- Return type:
None.
- pygmi.vector.iodefs.get_GXYZ(ifile, showlog=print, piter=iter)#
Get Geosoft XYZ.
- Returns:
df2 – Pandas dataframe.
- Return type:
DataFrame
- pygmi.vector.iodefs.get_intrepid(ifile, showlog=print, piter=iter)#
Get Intrepid Database.
- Returns:
df – Pandas Dataframe.
- Return type:
DataFrame