regrid2-mvcdms2.FRegrid

LibCF regridding class

class LibCFRegrid(srcGrid, dstGrid, srcGridMask=None, srcBounds=None, **args)[source]

Methods

apply(srcData, dstData[, missingValue])

Regrid source to destination

computeWeights(**args)

Compute interpolation weights

fillInDiagnosticData(diag, rootPe)

Fill in diagnostic data

getDstGrid()

Get the grid of the dst data

getSrcGrid()

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

apply(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(**args)[source]

Compute interpolation weights

Parameters
**args arguments to be passed to gsRegrid, e.g. nitermax, tolpos, …
fillInDiagnosticData(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()[source]

Get the grid of the dst data

Returns
grid
getSrcGrid()[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