pygmt.clib.Session.__getitem__

Session.__getitem__(name)[source]

Get the value of a GMT constant.

Parameters:

name (str) – The name of the constant (e.g., "GMT_SESSION_EXTERNAL").

Return type:

int

Returns:

value – Integer value of the constant. Do not rely on this value because it might change.