# cf.RegridOperator¶

class cf.RegridOperator(regrid, name, **parameters)[source]

Bases: object

A regridding operator between two fields.

Stores an ESMF.Regrid regridding operator and associated parameters that describe the complete coordinate system of the destination grid.

Initialization

Parameters
regrid: ESMF.Regrid

The ESMF regridding operator between two fields.

name: str

A name that defines the context of the destination grid parameters.

parameters: dict

Parameters that describe the complete coordinate system of the destination grid.

Any parameter names and values are allowed, and it is assumed that the these are well defined during the creation and subsequent use of a RegridOperator instance.

Attributes

 method The regridding method. name The name of the regrid method. regrid The contained regridding operator. parameters The parameters that describe the destination grid.

Methods

 check_method Whether the given method is equivalent to the regridding method. copy Return a copy. destroy Free the memory allocated by the ESMF.Regrid instance. get_parameter Return a regrid operation parameter.

## Special¶

Methods

 __del__ Calls the ESMF.Regrid destroy method. __repr__ Return repr(self).