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
GXSTK
class objects.See also:
GXSTK
class.- add_stk()[source]¶
Create and add a
GXSTK
object toGXMSTK
New in version 5.0.
License: Geosoft End-User License
Note: Index to the added
GXSTK
object is the last one inGXMSTK
container.
- 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
GXVA
channelsprof_ch_vv (GXVV) – List of profiles with channel names in both
GXMSTK
andGXDB
prof_ch__un_used_vv (GXVV) – List of profiles with channels in
GXMSTK
but 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
GXMSTK
object respectively
- classmethod create()[source]¶
Create
GXMSTK
.New in version 5.0.
License: Geosoft End-User License
- delete_stk(num)[source]¶
Delete a
GXSTK
object- Parameters:
num (int) – Index to
GXSTK
to 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
GXSTK
from 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
GXSTK
found, 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
GXSTK
from 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
GXSTK
objects in aGXMSTK
objectNew in version 5.0.
License: Geosoft End-User License
- get_stk(num)[source]¶
Get a specific
GXSTK
object from aGXMSTK
object (Index of 0 gets the firstGXSTK
in 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
GXWA
file 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