monet.dataset_to_monet(dset, lat_name='latitude', lon_name='longitude', latlon2d=False)

Rename xarray DataArray or Dataset coordinate variables for use with monet functions, returning a new xarray object.

  • dset (xarray.DataArray or xarray.Dataset) – A given data obj to be renamed for monet.

  • lat_name (str) – Name of the latitude array.

  • lon_name (str) – Name of the longitude array.

  • latlon2d (bool) – Whether the latitude and longitude data is two-dimensional.