processing.regrid#

Functions

remap_xesmf(ds, ds_out[, method, ...])

Remap the input dataset to the target grid using xESMF.

remap_xesmf(ds: Dataset, ds_out: Dataset, method: str = 'bilinear', regridder_kwargs: dict = {}, regridding_kwargs: dict = {})[source]#

Remap the input dataset to the target grid using xESMF.

If lat_bounds and lon_bounds are not present in the input dataset, they will be added.

Parameters:
  • ds (xarray.Dataset) – The input dataset to remap.

  • ds_out (xarray.Dataset) – The target grid dataset.

  • method (str, optional) – The remap method to use, by default “bilinear”.

  • regridder_kwargs (dict) – Keyword arguments for the creation of the regridder. See xesmf.Regridder.

  • regridding_kwargs (dict) – Keyword arguments for the actual regridding. See xesmf.Regridder.regrid_dataset.

Returns:

The remapped dataset in xarray format.

Return type:

xarray.Dataset