Skip to content

load_earth_relief: Add the support of data source 'synbath' - #2162

Merged
willschlitzer merged 15 commits into
mainfrom
load-earth-relief/synbath
Nov 21, 2022
Merged

load_earth_relief: Add the support of data source 'synbath'#2162
willschlitzer merged 15 commits into
mainfrom
load-earth-relief/synbath

Conversation

@willschlitzer

Copy link
Copy Markdown
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

willschlitzer commented Nov 14, 2022

Copy link
Copy Markdown
Contributor Author

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

seisman commented Nov 15, 2022

Copy link
Copy Markdown
Member

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

Comment thread pygmt/helpers/testing.py Outdated
Comment thread pygmt/helpers/testing.py Outdated
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
Copy Markdown
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

seisman commented Nov 19, 2022

Copy link
Copy Markdown
Member

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

seisman commented Nov 20, 2022

Copy link
Copy Markdown
Member

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.

3 participants