-
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
Global earth relief data loaded as xarray doesn't work if projection center is not 0 #515
Comments
Not sure if #476 will fix this. I just refactored the code there but it's still giving the strange static-looking image in the gallery at https://pygmt-24935dva1.vercel.app/gallery/grid/track_sampling.html#sphx-glr-gallery-grid-track-sampling-py. This is with the pixel registered earth relief grid. Passing in the gridline registered makes it a bit better: |
@PaulWessel Please see if you have any idea why it fails. FYI, PyGMT is still using |
Remind me: The xarray is being passed into GMT as a grid via a GMT_MATRIX structure? |
Yes, |
In gmtapi_import_grid:
Not completely reassuring... Could you try GMT_IN|GMT_IS_DUPLICATE and see if that works? |
Sorry, what is different in settings between your TL panel here and the BL panel in the top post? |
TL panel here: BL panel in the top post: |
OK, so -JH120/10.c does not to any rotation and messes up at -180 + 120 = 60W it seems. |
The issue is caused by upstream GMT bugs, which was fixed in a series of upstream PRs (GenericMappingTools/gmt#3813, GenericMappingTools/gmt#3813, GenericMappingTools/gmt#3829) and already merged into GMT's master and 6.1 branches. GMT may release v6.1.1 this month. When GMT v6.1.1 is released, I think we can bump the minimum required GMT version to v6.1.1 and release PyGMT v0.2.0. HELP NEEDED PyGMT users who build GMT from source codes may try GMT's 6.1 branch (for the upcoming v6.1.1 release) and see if you can find any related bugs before GMT v6.1.1 is released. |
Description of the problem
It may work in GMT 6.0.0 + PyGMT v0.1.2, or not. Currently, PyGMT master + GMT 6.1.0 gives me a wrong result.
Full code that generated the error
Output
The text was updated successfully, but these errors were encountered: