GXMSTK class¶
- class GXMSTK(handle=0)[source]¶
GXMSTK class.
Multi-profile stack This class is used for storing data of multiple profiles and plotting profiles in a map. It is a container of
GXSTKclass objects.See also:
GXSTKclass.- add_stk()[source]¶
Create and add a
GXSTKobject toGXMSTKNew in version 5.0.
License: Geosoft End-User License
Note: Index to the added
GXSTKobject is the last one inGXMSTKcontainer.
- chan_list_vv(db, num_ch_vv, str_ch_vv, x_ch_vv, prof_ch_vv, prof_ch__un_used_vv)[source]¶
Save channel names in VVs based on channel types
- Parameters:
db (GXDB) – Database handle
num_ch_vv (GXVV) – List of names of numeric channels
str_ch_vv (GXVV) – List of name of string channels
x_ch_vv (GXVV) – List of channel names which can be used for X axis. Must be numeric channels but not
GXVAchannelsprof_ch_vv (GXVV) – List of profiles with channel names in both
GXMSTKandGXDBprof_ch__un_used_vv (GXVV) – List of profiles with channels in
GXMSTKbut not in database
New in version 5.0.
License: Geosoft End-User License
Note: Terms ‘used’ and ‘unused’ indicate that the a channel name in database also ‘in’ and ‘not in’ the
GXMSTKobject respectively
- classmethod create()[source]¶
Create
GXMSTK.New in version 5.0.
License: Geosoft End-User License
- delete_stk(num)[source]¶
Delete a
GXSTKobject- Parameters:
num (int) – Index to
GXSTKto delete (0 is first one)
New in version 5.0.
License: Geosoft End-User License
Note: 0 is the first one
- draw_profile(db, line, map)[source]¶
Draw multiple profiles in map
New in version 5.0.
License: Geosoft End-User License
- find_stk(str_val, index, group, x_ch, y_ch)[source]¶
Find index of
GXSTKfrom a string of group names and X/Y channels- Parameters:
str_val (str) – Input string (see notes above). Will be modified on return
index (int_ref) – Index to the
GXSTKfound, Must be greater than 0 if found, -1 if not foundgroup (str_ref) – Output group name string
x_ch (str_ref) – Output X channel name string
y_ch (str_ref) – Output Y channel name string
New in version 5.0.
License: Geosoft End-User License
Note: Format of the input string:
Map group name + “ ( “ + X channel name + “ , “ + Y channel name + “ )”
for example, string “DATA ( DIST , MAG )” indicates a map group name of DATA, X channel name of DIST and Y channel name of MAG.
- find_stk2(str_val, index, vv_rtd)[source]¶
Find index of
GXSTKfrom a string of group names and X/Y channels- Parameters:
New in version 5.0.
License: Geosoft End-User License
Note: Format of the input string:
Map group name + “ ( “ + X channel name + “ , “ + Y channel name + “ )”
for example, string “DATA ( DIST , MAG )” indicates a map group name of DATA, X channel name of DIST and Y channel name of MAG.
- get_num_stk()[source]¶
Get the number of
GXSTKobjects in aGXMSTKobjectNew in version 5.0.
License: Geosoft End-User License
- get_stk(num)[source]¶
Get a specific
GXSTKobject from aGXMSTKobject (Index of 0 gets the firstGXSTKin theGXMSTK)New in version 5.0.
License: Geosoft End-User License
- 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
- read_ini(ra)[source]¶
Read multiple profiles parameters from an INI file
New in version 5.0.
License: Geosoft End-User License
- save_profile(wa)[source]¶
Save multiple profile INI parameters in a
GXWAfile of INI formatNew in version 5.0.
License: Geosoft End-User License
- set_y_axis_direction(direction)[source]¶
Set the Y-axis direction - normal or inverted
- Parameters:
direction (int) – Y-axis direction: 0 - normal, 1 - inverted
New in version 8.3.
License: Geosoft End-User License