mesmer.core.grid.wrap_to_180

Contents

mesmer.core.grid.wrap_to_180#

mesmer.core.grid.wrap_to_180(obj, lon_name='lon')#

wrap array with longitude to [-180..180)

Parameters:
  • obj (xr.Dataset or xr.DataArray) – object with longitude coordinates

  • lon_name (str, default: “lon”) – name of the longitude (‘lon’, ‘longitude’, …)

Returns:

wrapped (Dataset) – Another dataset array wrapped around.