-
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
Geographic xarray.DataArray grid is plotted as Cartesian grid #1172
Comments
@PaulWessel This looks like an upstream GMT bug. Here is a minimal script to reproduce the issue. It extracts a subregion from the earth_relief_01d grid, and then plot it using
Internally, PyGMT calls the
|
Here is what happens: Your GMT_GRID_IS_GEO bit-flag only leads to a call to |
The issue has been fixed in GenericMappingTools/gmt#5091 and GenericMappingTools/gmt#5092 |
Description of the problem
Originally found in #1154 (comment)
Full code that generated the error
xrgrid.gmt.gtype
is 1, so the grid is a geographic grid. However, the grid is still plotted as a Cartesian grid.System information
Please paste the output of
python -c "import pygmt; pygmt.show_versions()"
:The text was updated successfully, but these errors were encountered: