-
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
Cache the 03s earth relief tile @N35E135.earth_relief_03s_g.nc #985
Cache the 03s earth relief tile @N35E135.earth_relief_03s_g.nc #985
Conversation
.github/workflows/cache_data.yaml
Outdated
@@ -33,7 +33,8 @@ jobs: | |||
gmt which -Ga @earth_relief_10m_p @earth_relief_10m_g \ | |||
@earth_relief_30m_p @earth_relief_30m_g \ | |||
@earth_relief_01d_p @earth_relief_01d_g \ | |||
@earth_relief_05m_p @earth_relief_05m_g | |||
@earth_relief_05m_p @earth_relief_05m_g \ | |||
@N35E135.earth_relief_03s_g.nc |
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.
😕 I even didn't know that we can use gmt which -Ga @N35E135.earth_relief_03s_g.nc
to download a single tile.
@PaulWessel It seems we can use the following command to download a tile of 03s earth relief grid:
I never saw it in the GMT documentation. Is it an undocumented feature? Is it the recommended way to download one tile? I don't understand why it works, since the tiles are stored in jp2 format on the GMT server. |
Certainly undocumented since we don't really want to tell people to get specific tiles, except indirectly via a -R setting. But it works as it does because the filename matches a known tile and off it goes. It knows what to do with these (jp2->nc). I think we should keep quiet about this because we may decide to change our tiling structure etc. It should not be something users should be aware of. |
Co-authored-by: Dongdong Tian <[email protected]>
…icMappingTools#985) Co-authored-by: Dongdong Tian <[email protected]>
Description of proposed changes
Originally posted in #976 (comment).
33.5MB https://github.com/GenericMappingTools/pygmt/suites/2150973318/artifacts/44049313
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