-
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 function to import seafloor crustal age dataset #1471
Conversation
Converting to draft to save resources when pushing changes. |
@GenericMappingTools/pygmt-admin How can I find the names of the specific grids to load in |
You can simply run |
Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
Looking at the deployment overview, I'm not able to figure out why it is running into errors. I'll hold off on merging this pull request. |
This is an unrelated problem, see #1575 (comment). A bit surprised it hasn't been fixed yet, but we can merge this regardless I think (preferably after a second approval). |
I have been running into test failures locally for |
Just ran |
Thanks for checking. It's just a tiny difference in the minimum values, so not too concerning but still frustrating: def test_earth_age_01d_with_region():
"""
Test loading low-resolution earth age with 'region'.
"""
> npt.assert_allclose(data.min(), 11.293945)
E AssertionError:
E Not equal to tolerance rtol=1e-07, atol=0
E
E Mismatched elements: 1 / 1 (100%)
E Max absolute difference: 2.21984863e-06
E Max relative difference: 1.96552102e-07
E x: array(11.293947, dtype=float32)
E y: array(11.293945)
def test_earth_age_05m_with_region():
"""
Test loading a subregion of high-resolution earth age.
"""
> npt.assert_allclose(data.data.min(), 0.040000916)
E AssertionError:
E Not equal to tolerance rtol=1e-07, atol=0
E
E Mismatched elements: 1 / 1 (100%)
E Max absolute difference: 1.31828011e-06
E Max relative difference: 3.2956248e-05
E x: array(0.040002, dtype=float32)
E y: array(0.040001) |
Nope, can't reproduce it locally, and the GitHub Actions CI seems ok. Here's my
Maybe try running |
…ols#1471) New function to download the Earth seafloor age datasets at various resolutions. This is the `@earth_age` grids on the GMT remote data server. * add earth_age.py * Add test_datasets_earth_age.py * add seafloor age datasets to helpers/testing.py * add load_earth_age to index.rst * add 05m grid tile for caching Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
This pull request adds a function to import the seafloor crustal age dataset, similar to
load_earth_relief()
.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