pygmi.pfmod.iodefs#

Import Potential field model data.

Classes#

ImportMod3D

Import Data.

ExportMod3D

Export 3D model data.

Exportkmz

Export kmz dialog.

MessageCombo

Message combo box.

Module Contents#

class pygmi.pfmod.iodefs.ImportMod3D(parent=None)#

Bases: pygmi.misc.BasicModule

Import Data.

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.

import_leapfrog_csv(filename)#

Import leapfrog csv block models.

Parameters:

filename (str) – Input filename.

Return type:

None.

import_ascii_xyz_model(filename)#

Use to import ASCII XYZ Models of the form x,y,z,label.

Parameters:

filename (str) – Input filename.

Return type:

None.

dict2lmod(indict, pre='')#

Convert a dictionary to a LithModel.

Parameters:
  • indict (dictionary) – Imported dictionary.

  • pre (str, optional) – Text. The default is ‘’.

Return type:

None.

class pygmi.pfmod.iodefs.ExportMod3D(parent=None)#

Bases: pygmi.misc.ContextModule

Export 3D model 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.

Return type:

None.

savemodel()#

Save model.

Return type:

None.

lmod2dict(outdict, pre='')#

Convert LithModel to a dictionary.

Parameters:
  • outdict (dictionary) – Output dictionary.

  • pre (str, optional) – Text. The default is ‘’.

Returns:

outdict – Output dictionary.

Return type:

dictionary

mod3dtocsv()#

Save the 3D model in a csv file.

Return type:

None.

mod3dtokmz()#

Save the 3D model and grids in a kmz file.

Only the boundary of the area is in degrees. The actual coordinates are still in meters.

Return type:

None.

mod3dtoshp(nodialog=False)#

Save the 3D model and grids in a shapefile file.

Only the boundary of the area is in degrees. The actual coordinates are still in meters.

Return type:

None.

class pygmi.pfmod.iodefs.Exportkmz(wkt, parent=None)#

Bases: PyQt6.QtWidgets.QDialog

Export kmz dialog.

Parameters:
  • parent (parent, optional) – Reference to the parent routine. The default is None.

  • wkt (str) – Well Known Text (wkt) representation of the projection.

setupui()#

Set up UI.

Return type:

None.

class pygmi.pfmod.iodefs.MessageCombo(combotext, parent=None)#

Bases: PyQt6.QtWidgets.QDialog

Message combo box.

Parameters:
  • parent (parent, optional) – Reference to the parent routine. The default is None.

  • combotext (list) – List of text for combo.

parent#

Reference to the parent routine.

Type:

parent

setupui()#

Set up UI.

Return type:

None.

acceptall()#

Accept option.

Returns:

Returns current text.

Return type:

str