regrid (high-level)

regrid(data, grid=None, *, interpolation='linear', backend='mir', **kwargs)

Regrid the high-level data object (with geography information) using the given backend and options. The data can be one of the following types:

  • an earthkit-data fieldlist

  • an earthkit-data field

  • a GRIB message as a bytes or io.BytesIO object (for backend="mir" only)

  • an xarray.DataArray or xarray.Dataset

To see the available **kwargs please refer to the documentation of the specific backend. The default backend is mir.

The following backendss are available:

Backend

Description

mir

use ECMWF’s Meteorological Interpolation and Regridding library (MIR) to perform the regridding. This is the default backend.

precomputed

use precomputed interpolation weights