processing.regrid#
Functions
|
Remap the input dataset to the target grid using xESMF. |
- _remap_xesmf_ds(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.
- _remap_xesmf_dt(dt: DataTree, ds_out: Dataset, method: str = 'bilinear', regridder_kwargs: dict = {}, regridding_kwargs: dict = {})[source]#
Remap the input DataTree to the target grid using xESMF. Applies _remap_xesmf_ds to each dataset in the DataTree.
- remap_xesmf(data: Dataset | DataTree, 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:
data (xarray.Dataset or xarray.DataTree) – The input data 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 data.
- Return type: