GXBIGRID class¶
-
class
GXBIGRID
(handle=0)¶ GXBIGRID class.
The Bigrid class is used to grid data using a optimized algorithm that assumes data is collected in semi-straight lines.
-
clear
()¶ Clears all the parameters in a
GXBIGRID
objectNew in version 5.0.
License: Geosoft Extended End-User License
-
classmethod
create
()¶ Create a handle to a Bigrid object
Returns: GXBIGRID
ObjectReturn type: GXBIGRID New in version 5.0.
License: Geosoft Extended End-User License
Note: The Bigrid object is initially empty. It will store the control file parameters which the Bigrid program needs to execute. Use the LoadParms_BIGRID method to get the control file parameters into the
GXBIGRID
object.
-
is_null
()¶ Check if this is a null (undefined) instance
Returns: True if this is a null (undefined) instance, False otherwise. Return type: bool
-
load_parms
(file)¶ Retrieves a Bigrid object’s control parameters from a file, or sets the parameters to default if the file doesn’t exist.
Parameters: file (str) – Name of file to get the parameter settings from Returns: 0 - Ok 1 - Error Return type: int New in version 5.0.
License: Geosoft Extended End-User License
Note: If the control file name passed into this function is a file which does not exist, then the defaults for a Bigrid control file will be generated and put into the
GXBIGRID
object. Otherwise, the control file’s settings are retrieved from the file and loaded into theGXBIGRID
object.
-
load_warp
(title, cell, warp)¶ Load a warp projection.
Parameters: - title (str) – New grid title
- cell (str) – New grid cell size as a string, blank for default
- warp (str) – Warp projection file name
Returns: 0 - Ok 1 - Error
Return type: int
New in version 5.0.
License: Geosoft Extended End-User License
-
classmethod
null
()¶ A null (undefined) instance of
GXBIGRID
Returns: A null GXBIGRID
Return type: GXBIGRID
-
run
(zchan, in_dat, out_dat)¶ Executes the Bigrid program, using the input channel and output file parameters.
Parameters: New in version 5.0.
License: Geosoft Extended End-User License
-
run2
(zchan, in_dat, out_dat, ipj)¶ Executes the Bigrid program, using the input channel and output file parameters with a projection handle.
Parameters: New in version 6.3.
License: Geosoft Extended End-User License
-
save_parms
(name)¶ Puts the Bigrid object’s control parameters back into its control file.
Parameters: name (str) – Name of file to put the parameter settings into New in version 5.0.
License: Geosoft Extended End-User License
Note: If the control file did not previously exist, it will be created. Otherwise, the old file will be overwritten.
-