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
Get the grid of the dst data
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, …
-