xoa.regrid.Regridder.regrid#
- Regridder.regrid(src_ds, dst_time=None, skipna=False, na_thres=1.0)[source]#
Regrid a dataset or data array horizontally, and optionally in time
- Parameters:
src_ds (xarray.Dataset, xarray.DataArray) – Source data
dst_time (array_like, xarray.DataArray, None) – Target times. When not provided, the time of the destination grid is used if any. No temporal interpolation is performed if there is no target time or no time in the source.
skipna (bool) – Skip NaN values
na_thres (float) – Threshold for NaN handling
- Returns:
xarray.Dataset, xarray.DataArray – Regridded data. Dimensions other than the horizontal ones are preserved.