Skip to content

Global earth relief data loaded as xarray doesn't work if projection center is not 0 #515

Description

@seisman

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

importpygmtfrompygmt.datasetsimportload_earth_reliefgrid=load_earth_relief()
fig=pygmt.Figure()
fig.grdimage(grid, cmap="geo", region='d', projection="H10c")
fig.shift_origin(xshift="12c")
fig.grdimage(grid, cmap="geo", region='g', projection="H10c")
fig.shift_origin(xshift="-12c", yshift="6c")
fig.grdimage(grid, cmap="geo", region='d', projection="H120/10c")
# this one sometimes crashes#fig.shift_origin(xshift="12c")#fig.grdimage(grid, cmap="geo", region='g', projection="H120/10c")fig.savefig("map.png")

Output

image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingupstreamBug or missing feature of upstream core GMT

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions