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

Add -Io to grdinfo for oblique format #7413

Merged
merged 1 commit into from Apr 25, 2023
Merged

Add -Io to grdinfo for oblique format #7413

merged 1 commit into from Apr 25, 2023

Conversation

PaulWessel
Copy link
Member

See this forum post for background. There are times we need grdinfo to report the grid's region in the lower left upper right +r syntax. This PR adds -Io to format the region that way.

There are times we need the grid's region in the lower left upper right +r syntax.  This PR adds -Io to format the region that way.
@PaulWessel PaulWessel added the enhancement Improving an existing feature label Apr 25, 2023
@PaulWessel PaulWessel added this to the 6.5.0 milestone Apr 25, 2023
@PaulWessel PaulWessel self-assigned this Apr 25, 2023
Copy link
Contributor

@anbj anbj left a comment

Choose a reason for hiding this comment

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

Looks good:

$ gmt grdcut -RNO -Gno.nc @earth_relief_10m
gmt [WARNING]: Remote dataset given to a data processing module but no registration was specified - default to gridline registration (if available)

$ gmt grdinfo -Io no.nc
-R4.5/57.8333333333/31.1666666667/71.3333333333+r

Q: It is not possible to use [dx[/dy] with the modifiers (e.g. -Io)?

@PaulWessel
Copy link
Member Author

No. Same with -Ir. They are just there to give the exact.

@anbj
Copy link
Contributor

anbj commented Apr 25, 2023

No. Same with -Ir. They are just there to give the exact.

Thanks.

@PaulWessel PaulWessel merged commit d67f522 into master Apr 25, 2023
7 checks passed
@PaulWessel PaulWessel deleted the grdinfo-oblique branch April 25, 2023 09:00
@PaulWessel PaulWessel added the add-changelog Add PR to the changelog label Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
add-changelog Add PR to the changelog enhancement Improving an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants