mesmer.core.grid.unstack_lat_lon

mesmer.core.grid.unstack_lat_lon#

mesmer.core.grid.unstack_lat_lon(data, *, x_dim='lon', y_dim='lat', stack_dim='gridcell')#

unstack an 1D grid to a regular lat-lon grid but do not align

Parameters:
  • data (xr.Dataset | xr.DataArray) – Array with 1D grid to unstack and align.

  • x_dim (str, default: “lon”) – Name of the x-dimension.

  • y_dim (str, default: “lat”) – Name of the y-dimension.

  • stack_dim (str, default: “gridcell”) – Name of the new dimension.

Returns:

data (xr.Dataset | xr.DataArray) – Array converted to a regular lat-lon grid (unaligned).