pygmi.vector.iodefs#
Import and export of vector data.
Classes#
A combobox to select vector columns. |
|
GUI to import vector data. |
|
GUI to import XYZ data. |
|
GUI to import voxel data. |
|
GUI to export XYZ data. |
|
GUI to export vector data. |
|
GUI to export voxel data. |
Functions#
|
Import a 3D UBC mesh and model. |
|
Export a section to a 3D UBC mesh and model. |
|
Get Geosoft XYZ. |
|
Get Intrepid Database. |
Module Contents#
- class pygmi.vector.iodefs.ColumnSelect(parent=None)#
Bases:
pygmi.misc.BasicModuleA combobox to select vector columns.
- Parameters:
parent – Reference to the parent routine. The default is None.
- settings(nodialog=False)#
Entry point into item.
- Parameters:
nodialog (bool) – Run settings without a dialog. The default is False.
- Returns:
True if successful, False otherwise.
- Return type:
bool
- run()#
Entry point into the routine, used to run context menu item.
- Returns:
True if successful, False otherwise.
- Return type:
bool
- saveproj()#
Save project data from class.
- class pygmi.vector.iodefs.ImportVector(parent=None)#
Bases:
pygmi.misc.BasicModuleGUI to import vector data.
- Parameters:
parent – Reference to the parent routine. The default is None.
- setupui()#
Set up UI.
- settings(nodialog=False)#
Entry point into item.
- Parameters:
nodialog (bool) – 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 (tuple | list | numpy.typing.NDArray) – Bounds defined as (xmin, ymin, xmax, ymax).
- saveproj()#
Save project data from class.
- class pygmi.vector.iodefs.ImportXYZ(parent=None)#
Bases:
pygmi.misc.BasicModuleGUI to import XYZ data.
This class imports tabular data.
- Parameters:
parent – Reference to the parent routine. The default is None.
- setupui()#
Set up UI.
- settings(nodialog=False)#
Entry point into item.
- Parameters:
nodialog (bool) – Run settings without a dialog. The default is False.
- Returns:
True if successful, False otherwise.
- Return type:
bool
- saveproj()#
Save project data from class.
- get_GXYZ()#
Get Geosoft XYZ.
- Returns:
Pandas DataFrame.
- Return type:
DataFrame
- get_delimited(delimiter=',')#
Get a delimited file.
- Parameters:
delimiter (str) – Delimiter type. The default is ‘,’.
- Returns:
Pandas DataFrame.
- Return type:
DataFrame
- get_excel()#
Get an Excel spreadsheet.
- Returns:
Pandas DataFrame.
- Return type:
DataFrame
- class pygmi.vector.iodefs.ImportVoxel(parent=None)#
Bases:
pygmi.misc.ContextModuleGUI to import voxel data.
- Parameters:
parent – Reference to the parent routine. The default is None.
- settings(nodialog=False)#
Entry point into item.
- Parameters:
nodialog (bool) – Run settings without a dialog. The default is False.
- Returns:
True if successful, False otherwise.
- Return type:
bool
- saveproj()#
Save project data from class.
- class pygmi.vector.iodefs.ExportXYZ(parent=None)#
Bases:
pygmi.misc.ContextModuleGUI to export XYZ data.
- Parameters:
parent – 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.ContextModuleGUI to export vector data.
- Parameters:
parent – 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.ExportVoxel(parent=None)#
Bases:
pygmi.misc.ContextModuleGUI to export voxel data.
- Parameters:
parent – 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
- pygmi.vector.iodefs.import_ubc(ifile)#
Import a 3D UBC mesh and model.
- Parameters:
ifile (str) – Input file name.
- Returns:
Imported voxel model.
- Return type:
VoxModel
- pygmi.vector.iodefs.export_ubc(ofile, data)#
Export a section to a 3D UBC mesh and model.
- Parameters:
ofile (str) – Output file name.
data (pygmi.vector.datatypes.VoxModel) – Dataset to export.
- pygmi.vector.iodefs.get_GXYZ(ifile, showlog=print, piter=iter)#
Get Geosoft XYZ.
- Parameters:
ifile (str) – Input file name.
showlog (collections.abc.Callable[..., None]) – Routine to show text messages. The default is print.
piter (collections.abc.Iterable) – Progress bar iterable, default is iter.
- Returns:
Pandas dataframe.
- Return type:
DataFrame
- pygmi.vector.iodefs.get_intrepid(ifile, showlog=print, piter=iter)#
Get Intrepid Database.
- Parameters:
ifile (str) – Input file name.
showlog (collections.abc.Callable[..., None]) – Routine to show text messages. The default is print.
piter (collections.abc.Iterable) – Progress bar iterable, default is iter.
- Returns:
Pandas Dataframe.
- Return type:
DataFrame