You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Global earth relief data loaded as xarray doesn't work if projection center is not 0 #515
changed the title [-]Plotting global earth relief data doesn't work if region="g" is used[/-][+]Global earth relief data loaded as xarray doesn't work if projection center is not 0.[/+]on Jul 23, 2020
changed the title [-]Global earth relief data loaded as xarray doesn't work if projection center is not 0.[/-][+]Global earth relief data loaded as xarray doesn't work if projection center is not 0[/+]on Jul 23, 2020
case GMT_IS_REFERENCE|GMT_VIA_MATRIX: /* The user's 2-D grid array of some sort, + info in the args [NOT YET FULLY TESTED] */
/* Getting a matrix info S_obj->resource. Create grid header and then pass the grid pointer via the matrix pointer */
Not completely reassuring... Could you try GMT_IN|GMT_IS_DUPLICATE and see if that works?
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.
Activity
weiji14 commentedon Jul 12, 2020
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:
[-]Plotting global earth relief data doesn't work if region="g" is used[/-][+]Global earth relief data loaded as xarray doesn't work if projection center is not 0.[/+][-]Global earth relief data loaded as xarray doesn't work if projection center is not 0.[/-][+]Global earth relief data loaded as xarray doesn't work if projection center is not 0[/+]seisman commentedon Jul 23, 2020
@PaulWessel Please see if you have any idea why it fails. FYI, PyGMT is still using
GMT_IN|GMT_IS_REFERENCEmode.PaulWessel commentedon Jul 23, 2020
Remind me: The xarray is being passed into GMT as a grid via a GMT_MATRIX structure?
seisman commentedon Jul 23, 2020
Yes,
GMT_IS_GRID|GMT_VIA_MATRIX.PaulWessel commentedon Jul 23, 2020
In gmtapi_import_grid:
Not completely reassuring... Could you try GMT_IN|GMT_IS_DUPLICATE and see if that works?
seisman commentedon Jul 23, 2020
Using
GMT_IN|GMT_IS_DUPLICATE, the GMT_Open_VirtualFile function returns a status code 32.Using
GMT_IN, it seems something wrong with the boundary condition:PaulWessel commentedon Jul 23, 2020
Sorry, what is different in settings between your TL panel here and the BL panel in the top post?
seisman commentedon Jul 23, 2020
TL panel here:
-Rd -JH120/10candGMT_IN.BL panel in the top post:
-Rd -JH10c, andGMT_IN|GMT_IS_REFERENCE.PaulWessel commentedon Jul 23, 2020
OK, so -JH120/10.c does not to any rotation and messes up at -180 + 120 = 60W it seems.
seisman commentedon Aug 4, 2020
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.