GXDAT class¶
-
class
GXDAT
(handle=0)[source]¶ 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)[source]¶ Create a handle to a database
GXDAT
object- Parameters
- Returns
GXDAT
Object- Return type
New in version 5.0.
License: Geosoft Open License
-
classmethod
create_xgd
(name, mode)[source]¶ Create a handle to a grid file
GXDAT
object- Parameters
name (str) – Name of grid file to associate
GXDAT
withmode (int) – DAT_XGD constants
- Returns
GXDAT
Object- Return type
New in version 5.0.
License: Geosoft Open License
-
classmethod
get_lst
(lst, interface_name, flags, mode)[source]¶ Put available
GXDAT
filters and qualifiers in aGXLST
- Parameters
interface_name (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”.
-
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
GXDAT
source- 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
GXDAT
interface.
-
classmethod
DAT_FILE constants¶
Type of grid
DAT_FILE_FORM constants¶
Type of form