dctools.processing.interpolation.interpolate_xesmf

dctools.processing.interpolation.interpolate_xesmf(ds, target_grid, weights_filepath=None, method='bilinear')

Interpolate Dataset using xESMF.

Parameters:
  • ds (xr.Dataset) – Input dataset.

  • target_grid (Dict) – Target grid coordinates.

  • weights_filepath (str, optional) – Path to weights file.

  • method (str) – Interpolation method (default: bilinear).

Returns:

Interpolated dataset.

Return type:

xr.Dataset