regrid2-mvcdms2.FRegrid

LibCF regridding class

class LibCFRegrid(srcGrid, dstGrid, srcGridMask=None, srcBounds=None, **args)[source]
apply(self, srcData, dstData, missingValue=None, **args)[source]

Regrid source to destination

Parameters
srcData :

array (input)

dstData :

array (output)

missingValue :

value that should be set for points falling outside the src domain, pass None if these should not be touched.

computeWeights(self, **args)[source]

Compute interpolation weights

Parameters
**args arguments to be passed to gsRegrid, e.g. nitermax, tolpos, …
fillInDiagnosticData(self, diag, rootPe)[source]

Fill in diagnostic data

Parameters
diag

a dictionary whose entries, if present, will be filled valid entries are: ‘numDstPoints’ and ‘numValid’

rootPe

not used

getDstGrid(self)[source]

Get the grid of the dst data

Returns
grid
getSrcGrid(self)[source]

Get the grid of the src data (maybe larger than the dst grid passed to the constructor due to column/row padding)

Returns
grid