gmt.grdinfo

gmt.grdinfo(grid, **kwargs)[source]

Get information about a grid.

Can read the grid from a file or given as an xarray.DataArray grid.

Full option list at http://gmt.soest.hawaii.edu/doc/latest/grdinfo.html

Parameters:
grid : str or xarray.DataArray

The file name of the input grid or the grid loaded as a DataArray.

Returns:
info : str

A string with information about the grid.