Skip to content

grdimage does not correctly plot xarray DataArrays when they don't contain the redundant longitude at 360 E #375

Closed
@MarkWieczorek

Description

@MarkWieczorek

grdimage of pygmt does not correctly plot xarray DataArrays when they do not contain the redundant column of data at 360 E.

Using pygmt directly with a netcdf file provides the correct output, such as with a command like:

fig.grdimage('test.grd', region='g', projection='A0/0/6i')

test

However, here is the same output generated by pygmt when using an xarray in memory:

fig.grdimage(grid, region='g', projection='A0/0/6i')

longitude

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions