RegridFromFile¶
- class ESMF.api.regrid.RegridFromFile(srcfield, dstfield, filename=None, rh_filename=None)¶
The
RegridFromFileobject represents a regridding operator between twoFieldsthat is read from a file. The creation of this object is analogous to= ESMF_FieldSMMStore(), and calling this object corresponds to ESMF_FieldRegrid(). ESMF_FieldRegridRelease() is called when theRegridFromFileobject goes out of scope (this only happens when theManagergoes out of scope, there is a destroy() call for explicit deallocation of theRegridFromFile).For more information about the ESMF Regridding functionality, please see the ESMF_FieldRegrid methods in the ESMF Reference Manual.
The following arguments are used to create a handle to a regridding operation between two
Fields.REQUIRED:
- Parameters
srcfield (Field) – source
Fieldassociated with an underlyingGrid,MeshorLocStream.dstfield (Field) – destination
Fieldassociated with an underlyingGrid,MeshorLocStream. The data in thisFieldmay be overwritten by this call.filename (string) – the name of the file from which to retrieve the weights.
rh_filename (string) – the name of the file from which to retrieve the routehandle information.
- __call__(srcfield, dstfield, zero_region=None)¶
Call a regridding operation from srcfield to dstfield.
REQUIRED:
- Parameters
OPTIONAL:
- destroy()¶
Release the memory associated with the
RegridFromFileobject.