mesmer.core.grid.align_to_coords

mesmer.core.grid.align_to_coords#

mesmer.core.grid.align_to_coords(data, coords_orig)#

align an unstacked lat-lon grid with its original coords

Parameters:
  • data (xr.Dataset | xr.DataArray) – Unstacked array with lat-lon to align.

  • coords_orig (xr.Dataset | xr.DataArray) – xarray object containing the original coordinates before it was converted to the 1D grid.

Returns:

data (xr.Dataset | xr.DataArray) – Array aligned with original grid.