-
Notifications
You must be signed in to change notification settings - Fork 225
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
load_earth_relief: Add the support of data source "GEBCO" #1818
Conversation
I'm running into an error when my machine is trying to find the cached version of the GEBCO files. When I run both
My guess is the issue is that the Earth GEBCO files are stored under .gmt/server/earth/earth_gebco rather than .gmt/cache. Is this a GMT error for how it finds the cached files? |
What's the output if you run the following GMT command?
|
Same issue. Does it work for you? Here is the output:
The file |
I've got the same
|
@weiji14 Does the use of |
It'll definitely take the local cached file. Looking at the verbose log though, |
These issues could be related to GenericMappingTools/gmt#6160. I would be curious if it works after deleting ~/.gmt/server/gmt_data_server.txt |
Just deleted both gmt_data_server.txt and gmt_data_server,tx.old; same result |
|
How extensively should this be testing |
Yes, I agree. |
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
pygmt/datasets/earth_relief.py
Outdated
@@ -55,9 +61,19 @@ def load_earth_relief(resolution="01d", region=None, registration=None, use_srtm | |||
use_srtm : bool | |||
By default, the land-only SRTM tiles from NASA are used to generate the | |||
``"03s"`` and ``"01s"`` grids, and the missing ocean values are filled | |||
by up-sampling the SRTM15+ tiles which have a resolution of 15 | |||
by up-sampling the SRTM15+V2.1 tiles which have a resolution of 15 |
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.
Should be v2.4 now according to https://web.archive.org/web/20220809113153/https://www.generic-mapping-tools.org/remote-datasets/earth-relief.html
by up-sampling the SRTM15+V2.1 tiles which have a resolution of 15 | |
by up-sampling the SRTM15+V2.4 tiles which have a resolution of 15 |
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 think it would be better to update "Refer to https://www.generic-mapping-tools.org/remote-datasets/earth-relief.html for more details."
above to "Refer to https://www.generic-mapping-tools.org/remote-datasets/index.html for more details about available datasets, including version information and references."
so that we don't need to update this on each SRTM15+ release and the link provided is more generic.
Need to add |
@GenericMappingTools/pygmt-maintainers Can someone else give this PR a final review before we merge it? |
Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
…es' into load-earth-relief/multiple-sources
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.
Cool, thanks @willschlitzer!
Co-authored-by: Dongdong Tian <seisman.info@gmail.com> Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
This pull request adds the GEBCO data source to
load_earth_relief
Addresses #1786
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