GXDAT class¶
- class GXDAT(handle=0)[source]¶
GXDAT class.
The
GXDATobject is used to access data from an variety of data sources using the same access functions. TheGXDATinterface supports data access on a point-by-point, of line-by-line basis. For example, theGXBIGRID.runfunction uses 2GXDATobjects - oneGXDATassociated with the input data source, which is read line-by-line, and a second associated with the output grid file output grid file.Use a specific
GXDATcreation method for an associated information source in order to make aGXDATas required by a specific processing function. The gridding methods all use DATs.- classmethod create_db(db, x_ch, y_ch, z_ch)[source]¶
Create a handle to a database
GXDATobject- Parameters:
- Returns:
GXDATObject- Return type:
New in version 5.0.
License: Geosoft Open License
- classmethod create_xgd(name, mode)[source]¶
Create a handle to a grid file
GXDATobject- Parameters:
name (str) – Name of grid file to associate
GXDATwithmode (int) – DAT_XGD constants
- Returns:
GXDATObject- Return type:
New in version 5.0.
License: Geosoft Open License
- classmethod get_lst(lst, interface_name, flags, mode)[source]¶
Put available
GXDATfilters and qualifiers in aGXLST- Parameters:
interface_name (str) –
GXDATinterface name (“XGD” only support option currently)flags (int) – DAT_FILE constants
mode (int) – DAT_FILE_FORM constants
New in version 5.1.8.
License: Geosoft Open License
Note: The filters displayed in the Grid/Image file browse dialog are put in the “Name” of the
GXLST, while the file qualifiers are stored in the “Value”.
- is_null()[source]¶
Check if this is a null (undefined) instance
- Returns:
True if this is a null (undefined) instance, False otherwise.
- Return type:
bool
- range_xyz(min_x, min_y, min_z, max_x, max_y, max_z, num_non_dummy)[source]¶
Determine the range in X, Y and Z in the
GXDATsource- Parameters:
num_non_dummy (int_ref) – Number of non-dummy XYZ.
New in version 7.3.
License: Geosoft Open License
Note: Terminates if unable to open an RPT
GXDATinterface.
DAT_FILE constants¶
Type of grid
DAT_FILE_FORM constants¶
Type of form
DAT_XGD constants¶
GXDAT Open modes