-
Notifications
You must be signed in to change notification settings - Fork 224
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
Add intro tutorial section for creating contour map #2126
Conversation
Co-authored-by: Dongdong Tian <[email protected]>
Co-authored-by: Dongdong Tian <[email protected]>
examples/get-started/contour-map.py
Outdated
# 1. Change the resolution of the grid file to either "01m" (lower resolution) | ||
# or "15s" (higher resolution). Note that higher resolution grids will have | ||
# larger file sizes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe link to https://www.generic-mapping-tools.org/remote-datasets/earth-relief.html#usage so users know what are the possible spatial resolutions, and mention explicitly that 01m
stands for 1 arc minute (some people might think it's 1 meter).
Ping @willschlitzer to finalize this PR so that we can merge it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks @willschlitzer! Just need to comment that pull_request:
line in .github/workflows/cache_data.yaml
as mentioned in https://github.com/GenericMappingTools/pygmt/pull/2126/files#r1008968590 before merging.
…ols#2126) Co-authored-by: Dongdong Tian <[email protected]> Co-authored-by: Wei Ji <[email protected]>
This adds a second section to the Intro to PyGMT tutorial. It covers retrieving and plotting Earth relief data, adding a color palette and color bar, and plotting contour lines.
Preview at https://pygmt-dev--2126.org.readthedocs.build/en/2126/get-started/contour-map.html
Addresses #770
Reminders
make format
andmake check
to make sure the code follows the style guide.doc/api/index.rst
.Slash Commands
You can write slash commands (
/command
) in the first line of a comment to performspecific operations. Supported slash commands are:
/format
: automatically format and lint the code/test-gmt-dev
: run full tests on the latest GMT development version