RegridFromFile¶
-
class
ESMF.api.regrid.
RegridFromFile
(srcfield, dstfield, filename=None, rh_filename=None)¶ The
RegridFromFile
object represents a regridding operator between twoFields
that 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 theRegridFromFile
object goes out of scope (this only happens when theManager
goes 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 Regrid documentation.
The following arguments are used to create a handle to a regridding operation between two
Fields
.REQUIRED:
- Parameters
srcfield (Field) – source
Field
associated with an underlyingGrid
,Mesh
orLocStream
.dstfield (Field) – destination
Field
associated with an underlyingGrid
,Mesh
orLocStream
. The data in thisField
may 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
RegridFromFile
object.