GXDATAMINE class

class GXDATAMINE(handle=0)

GXDATAMINE class.

GXDATAMINE functions provide an interface to Datamine Software Limited files. See also GXGIS for various other Datamine-specific functions.

Note:

None.

classmethod create_voxel(file, field, ipj, meta, voxel)

Create a Geosoft Voxel file from a Datamine block model file.

Parameters:
  • file (str) – Datamine file name
  • field (str) – Field to use for data
  • ipj (GXIPJ) – Projection to set
  • meta (GXMETA) – GXMETA to set
  • voxel (str) – Output voxel file name

New in version 6.3.

License: Geosoft End-User License

Note: Create a Geosoft Voxel file from a Datamine block model file.

is_null()

Check if this is a null (undefined) instance

Returns:True if this is a null (undefined) instance, False otherwise.
Return type:bool
classmethod null()

A null (undefined) instance of GXDATAMINE

Returns:A null GXDATAMINE
Return type:GXDATAMINE
classmethod numeric_field_lst(file, lst)

Return a GXLST containing the non-standard numeric fields in a Datamine file.

Parameters:
  • file (str) – Datamine file name
  • lst (GXLST) – GXLST to populate

New in version 6.3.

License: Geosoft End-User License

Note: At this time, only GIS_DMTYPE_BLOCKMODEL files are supported. The field names go in the name part, and field indices (1 to N) in the value part.

GIS_DMTYPE constants

Datamine file types

GIS_DMTYPE_STRING

String

gxapi.GIS_DMTYPE_STRING = 2
GIS_DMTYPE_WIREFRAME_TR

Wireframe tr

gxapi.GIS_DMTYPE_WIREFRAME_TR = 8
GIS_DMTYPE_DTM

Dtm

gxapi.GIS_DMTYPE_DTM = 16
GIS_DMTYPE_BLOCKMODEL

Blockmodel

gxapi.GIS_DMTYPE_BLOCKMODEL = 32
GIS_DMTYPE_WIREFRAME_PT

Wireframe pt

gxapi.GIS_DMTYPE_WIREFRAME_PT = 64
GIS_DMTYPE_POINTDATA

Pointdata

gxapi.GIS_DMTYPE_POINTDATA = 1024