regrid2.esmf:EsmfStructGrid

EsmfStructGrid.setCoords(coords, staggerloc=<StaggerLoc.CENTER: 0>, globalIndexing=False)[source]

Populate the grid with staggered coordinates (e.g. corner or center).

Parameters
coordsThe curvilinear coordinates of the grid. List of numpy arrays.

Must exist on all procs.

staggerlocThe stagger location ESMF.StaggerLoc.CENTER (default)

ESMF.StaggerLoc.CORNER

globalIndexingif True array was allocated over global index space, otherwise array was

allocated over local index space on this processor. This is only relevant if rootPe is None

Notes

coord dims in cdms2 are ordered in y, x, but ESMF expects x, y, hence the dimensions are reversed here.