pygmt.Figure.grdimage

Figure.grdimage(self, grid, **kwargs)

Project grids or images and plot them on maps.

Takes a grid file name or an xarray.DataArray object as input. Alternatively, pass in a list of red, green, blue grids to be imaged.

Full option list at https://www.generic-mapping-tools.org/gmt/latest/grdimage.html

Aliases:

  • B = frame
  • C = cmap
  • I = shading
  • J = projection
  • R = region
  • W = pen
Parameters:
grid : str, xarray.DataArray or list

The file name of the input grid or the grid loaded as a DataArray. For plotting RGB grids, pass in a list made up of either file names or DataArrays to the individual red, green and blue grids.