GXACQUIRE class¶
- class GXACQUIRE(handle=0)[source]¶
GXACQUIRE class.
This class is used to import acQuire data. It uses the public acQuire API.
- classmethod create()[source]¶
Create an acQuire object
- Returns:
acQuire Object
- Return type:
New in version 6.0.
License: Geosoft End-User License
- delete_empty_chan(db)[source]¶
Delete empty channels
- Parameters:
db (GXDB) – Database
New in version 6.0.
License: Geosoft End-User License
- get_selection_info(selection_file, mode, destination_grid)[source]¶
Get some information from existing selection file.
- Parameters:
selection_file (str) – Selection File Name
mode (int_ref) – ACQUIRE_SEL constants
destination_grid (int_ref) – 0 - Destination grid was not selected 1 - Destination grid was selected
New in version 9.6.
License: Geosoft End-User License
- import_hole(proj, dir, para, geo_vv, delete_existing, convert)[source]¶
Import Drillhole data acQuire database into a GDB
- Parameters:
proj (str) – Project name
dir (str) – Project directory
para (str) – Parameter File
geo_vv (GXVV) – List of geology name database
delete_existing (int) – 0: Write to existing databases (overwrite holes), 1: Delete existing databases.
convert (int) – Convert Negatives (0,1)
- Returns:
0 - Ok 1 - Error (Will not stop GX)
- Return type:
int
New in version 6.0.1.
License: Geosoft End-User License
Note: Point data and polygon data are saved into Dnnn lines in GDB, nnn representing incremental number starting from 0
- import_point(db, para, convert)[source]¶
Import Point Sample data acQuire database into a GDB
- Parameters:
db (GXDB) – Geosoft GDB
para (str) – Parameter File
convert (int) – Convert Negatives (0,1)
- Returns:
0 - Ok 1 - Error (Will not stop GX)
- Return type:
int
New in version 6.0.1.
License: Geosoft End-User License
Note: Data existing in the receiving GDB file will be over-written. Point data and polygon data are saved into Dnnn lines in GDB, nnn representing incremental number starting from 0
- 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
- selection_tool(selection_file, mode)[source]¶
Run the acQuire Selection Tool.
- Parameters:
selection_file (str) – Selection File Name
mode (int) – ACQUIRE_SEL constants
- Returns:
0 - Ok 1 - if user cancels
- Return type:
int
New in version 6.0.1.
License: Geosoft End-User License
Note: The selection file will be loaded (if present) and then the user can make selections then the selections are saved back in the selection file.
- selection_tool_force_grid_selection(selection_file, mode)[source]¶
Run the acQuire Selection Tool, but force selection of destination grid.
- Parameters:
selection_file (str) – Selection File Name
mode (int) – ACQUIRE_SEL constants
- Returns:
0 - Ok 1 - if user cancels
- Return type:
int
New in version 9.6.
License: Geosoft End-User License
Note: The selection file will be loaded (if present) and then the user can make selections then the selections are saved back in the selection file.
ACQUIRE_SEL constants¶
Type of Selection