regrid2.mvESMFRegrid:ESMFRegrid

ESMFRegrid.apply(srcData, dstData, rootPe, globalIndexing=False, **args)[source]

Regrid source to destination. When used in parallel, if the processor is not the root processor, the dstData returns None.

Source data mask:

  • If you provide srcDataMask in args the source grid will be masked and weights will be recomputed.

  • Subsequently, if you do not provide a srcDataMask the last weights will be used to regrid the source data array.

  • By default, only the data are masked, but not the grid.

Parameters
srcDataarray source data, shape should cover entire global index space
dstDataarray destination data, shape should cover entire global index space
rootPeif other than None, then data will be MPI gathered on the specified rootPe processor
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

args