Skip to content
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 'synbath' #2162

Merged
merged 15 commits into from
Nov 21, 2022

Conversation

willschlitzer
Copy link
Contributor

This pull request adds the synbath data source to load_earth_relief

Addresses #1786

Reminders

  • Run make format and make check to make sure the code follows the style guide.
  • Add tests for new features or tests that would have caught the bug that you're fixing.
  • Add new public functions/methods/classes to doc/api/index.rst.
  • Write detailed docstrings for all functions/methods.
  • If wrapping a new module, open a 'Wrap new GMT module' issue and submit reasonably-sized PRs.
  • If adding new functionality, add an example to docstrings or tutorials.

Slash Commands

You can write slash commands (/command) in the first line of a comment to perform
specific operations. Supported slash commands are:

  • /format: automatically format and lint the code
  • /test-gmt-dev: run full tests on the latest GMT development version

@willschlitzer willschlitzer added the feature Brand new feature label Oct 17, 2022
@willschlitzer willschlitzer added this to the 0.8.0 milestone Oct 17, 2022
@willschlitzer willschlitzer self-assigned this Oct 17, 2022
@willschlitzer
Copy link
Contributor Author

willschlitzer commented Nov 14, 2022

I haven't cached the new gridfiles yet; I'll add them later to testing.py assuming this addition is well-received.

@willschlitzer willschlitzer changed the title WIP: Add synbath data source to load_earth_relief Add synbath data source to load_earth_relief Nov 14, 2022
@willschlitzer willschlitzer marked this pull request as ready for review November 14, 2022 15:27
@seisman
Copy link
Member

seisman commented Nov 15, 2022

I think you need to cache the earth_synbat_ grids used in the tests.

pygmt/helpers/testing.py Outdated Show resolved Hide resolved
pygmt/helpers/testing.py Outdated Show resolved Hide resolved
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
@seisman seisman added the final review call This PR requires final review and approval from a second reviewer label Nov 18, 2022
@willschlitzer
Copy link
Contributor Author

I combined the SYNBATH 01d grid test with the IGPP test. Happy to split it back into two tests, but I think this is easier since that have the same shape and min/max values.

@seisman
Copy link
Member

seisman commented Nov 19, 2022

Since the PR title will be shown in the changelogs, what about changing the PR title to "load_earth_relief: Add the support of data source 'synbath'"?

@willschlitzer willschlitzer changed the title Add synbath data source to load_earth_relief load_earth_relief: Add the support of data source 'synbath' Nov 19, 2022
@seisman
Copy link
Member

seisman commented Nov 20, 2022

Ping @GenericMappingTools/pygmt-maintainers for final reviews.

@willschlitzer willschlitzer merged commit 242f92b into main Nov 21, 2022
@willschlitzer willschlitzer deleted the load-earth-relief/synbath branch November 21, 2022 14:51
@willschlitzer willschlitzer removed the final review call This PR requires final review and approval from a second reviewer label Nov 21, 2022
sixy6e pushed a commit to sixy6e/pygmt that referenced this pull request Dec 21, 2022
…appingTools#2162)

* Add synbath option to earth_relief.py
* Add tests for Earth relief with the synbath dataset
* Update cache for synbath grids

Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Brand new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants