GXDAT class¶
-
class
GXDAT
(handle=0)¶ GXDAT class.
The
GXDAT
object is used to access data from an variety of data sources using the same access functions. TheGXDAT
interface supports data access on a point-by-point, of line-by-line basis. For example, theGXBIGRID.run
function uses 2GXDAT
objects - oneGXDAT
associated 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
GXDAT
creation method for an associated information source in order to make aGXDAT
as required by a specific processing function. The gridding methods all use DATs.-
classmethod
create_db
(db, x_ch, y_ch, z_ch)¶ Create a handle to a database
GXDAT
objectParameters: Returns: GXDAT
ObjectReturn type: New in version 5.0.
License: Geosoft Open License
-
classmethod
create_xgd
(name, mode)¶ Create a handle to a grid file
GXDAT
objectParameters: - name (str) – Name of grid file to associate
GXDAT
with - mode (int) – DAT_XGD constants
Returns: GXDAT
ObjectReturn type: New in version 5.0.
License: Geosoft Open License
- name (str) – Name of grid file to associate
-
classmethod
get_lst
(lst, interface, flags, mode)¶ Put available
GXDAT
filters and qualifiers in aGXLST
Parameters: - lst (GXLST) –
GXLST
object to populate - interface (str) –
GXDAT
interface 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”.- lst (GXLST) –
-
is_null
()¶ 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)¶ Determine the range in X, Y and Z in the
GXDAT
sourceParameters: - min_x (float_ref) – Minimum X (
rMAX
if none) - min_y (float_ref) – Minimum Y (
rMAX
if none) - min_z (float_ref) – Minimum Z (
rMAX
if none) - max_x (float_ref) – Maximum X (
rMIN
if none) - max_y (float_ref) – Maximum Y (
rMIN
if none) - max_z (float_ref) – Maximum Z (
rMIN
if none) - 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
GXDAT
interface.- min_x (float_ref) – Minimum X (
-
classmethod
DAT_FILE constants¶
Type of grid
-
DAT_FILE_GRID
¶ Grid
-
gxapi.
DAT_FILE_GRID
= 1
-
-
DAT_FILE_IMAGE
¶ Image
-
gxapi.
DAT_FILE_IMAGE
= 2
-