-
Notifications
You must be signed in to change notification settings - Fork 235
Document the environment variables that can affect the behavior of PyGMT #3432
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from 6 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
7a48416
Add a page for environment variables used in PyGMT
seisman 362c1dd
Link to these environment variable using the term role
seisman 5616d87
Set the font-weight for std-term class
seisman 4eac3b1
Add GMT_LIBRARY_PATH
seisman 2be65fa
Add references to GMT_LIBRARY_PATH
seisman e960847
Improve the description of the variables
seisman 7ed1300
Fix the link to os.environ
seisman a741f26
Merge branch 'main' into doc/env
seisman 319ae0d
Merge branch 'main' into doc/env
seisman c1c3867
Merge branch 'main' into doc/env
seisman fd80e46
Merge branch 'main' into doc/env
seisman ef76a1a
Change "environmental" to "environment"
seisman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| # Environmental Variables | ||
|
|
||
| PyGMT's behavior can be controlled through various environment variables. These variables | ||
| can be set either in your shell environment or within your Python script using the | ||
| :py:data:`os.environ` dictionary. | ||
|
||
|
|
||
| Here we list the environment variables used by PyGMT. The environment variables are | ||
| categorized into three groups: | ||
seisman marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| 1. System environment variables | ||
| 2. GMT/PyGMT environment variables | ||
| 3. Module-specific environment variables | ||
|
|
||
| ## System Environment Variables | ||
|
|
||
| ```{glossary} | ||
| TZ | ||
| Specify the time zone for the current calendar time. It can be set to a string that | ||
| defines the timezone, such as `"UTC"`, `"America/New_York"`, or `"Europe/London"`. | ||
| Refer to the [Specifying the Time Zone with TZ](https://www.gnu.org/software/libc/manual/html_node/TZ-Variable.html) | ||
seisman marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| for the valid format. If not set, the system's default timezone is used. | ||
| ``` | ||
|
|
||
| ## GMT/PyGMT Environment Variables | ||
|
|
||
| ```{glossary} | ||
| GMT_LIBRARY_PATH | ||
| Specify the directory where the GMT shared library is located. This is useful when | ||
| GMT is installed in a non-standard location or when you want to use a specific | ||
| version of GMT. If not set, PyGMT will attempt to find the GMT library in standard | ||
| system locations. | ||
| PYGMT_USE_EXTERNAL_DISPLAY | ||
| Whether to use external viewers for displaying images. If set to `"false"`, PyGMT | ||
| will not attempt to open images in external viewers. This can be useful when running | ||
| tests or building the documentation to avoid popping up windows. | ||
| ``` | ||
|
|
||
| ## Module-Specific Environment Variables | ||
|
|
||
| ```{glossary} | ||
| X2SYS_HOME | ||
| Specify the directory where x2sys databases and related settings will be stored. | ||
| This environment variable is used by x2sys-related functions (e.g., | ||
| {func}`pygmt.x2sys_init`) to manage and access x2sys data. If not set, these | ||
| functions will use a default directory or prompt for a location. | ||
| ``` | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Uh oh!
There was an error while loading. Please reload this page.