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

Wrap sph2grd #1434

Merged
merged 22 commits into from
Sep 27, 2021
Merged

Wrap sph2grd #1434

merged 22 commits into from
Sep 27, 2021

Conversation

willschlitzer
Copy link
Contributor

@willschlitzer willschlitzer commented Aug 10, 2021

This pull request wraps the GMT module sph2grd.

Preview docs at https://pygmt-git-wrap-sph2grd-gmt.vercel.app/api/generated/pygmt.sph2grd.html

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 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 Aug 10, 2021
@willschlitzer willschlitzer added this to the 0.5.0 milestone Aug 10, 2021
@willschlitzer willschlitzer self-assigned this Aug 10, 2021
Remove GMTInvalidInput import statement
Remove the use of grdinfo and use xarray min, max, median, and mean functions to test data in outgrid
@willschlitzer willschlitzer changed the title WIP: Wrap sph2grd Wrap sph2grd Sep 10, 2021
@willschlitzer willschlitzer marked this pull request as ready for review September 10, 2021 01:50
doc/api/index.rst Outdated Show resolved Hide resolved
pygmt/src/sph2grd.py Outdated Show resolved Hide resolved
pygmt/src/sph2grd.py Outdated Show resolved Hide resolved
Co-authored-by: Meghan Jones <meghanj@alum.mit.edu>
pygmt/src/sph2grd.py Outdated Show resolved Hide resolved
pygmt/src/sph2grd.py Outdated Show resolved Hide resolved
pygmt/src/sph2grd.py Outdated Show resolved Hide resolved
pygmt/src/sph2grd.py Outdated Show resolved Hide resolved
pygmt/src/sph2grd.py Outdated Show resolved Hide resolved
pygmt/tests/test_sph2grd.py Outdated Show resolved Hide resolved
pygmt/tests/test_sph2grd.py Outdated Show resolved Hide resolved
pygmt/src/sph2grd.py Outdated Show resolved Hide resolved
Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
Copy link
Member

@weiji14 weiji14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks ready for final review. Just some minor comments to fix the lint error and add some common aliases.

Also, remember to cache the @EGM96_to_36.txt dataset as mentioned in #1434 (comment). You can do it directly in this PR instead of opening a new one.

pygmt/src/sph2grd.py Outdated Show resolved Hide resolved
pygmt/src/sph2grd.py Show resolved Hide resolved
pygmt/src/sph2grd.py Outdated Show resolved Hide resolved
pygmt/src/sph2grd.py Show resolved Hide resolved
@weiji14 weiji14 added the final review call This PR requires final review and approval from a second reviewer label Sep 26, 2021
willschlitzer and others added 2 commits September 26, 2021 13:07
Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
pygmt/src/sph2grd.py Outdated Show resolved Hide resolved
pygmt/src/sph2grd.py Outdated Show resolved Hide resolved
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
@willschlitzer willschlitzer removed the final review call This PR requires final review and approval from a second reviewer label Sep 27, 2021
@willschlitzer willschlitzer merged commit e716971 into main Sep 27, 2021
@willschlitzer willschlitzer deleted the wrap-sph2grd branch September 27, 2021 06:51
sixy6e pushed a commit to sixy6e/pygmt that referenced this pull request Dec 21, 2022
Wrapping the sph2grd function.

*Add sph2grd tests
*Wrap required and common aliases
*Add sph2grd to API index


Co-authored-by: Meghan Jones <meghanj@alum.mit.edu>
Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
This pull request was closed.
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.

4 participants