cdms2.variable:DatasetVariable¶
-
DatasetVariable.
regrid
(self, togrid, missing=None, order=None, mask=None, **keywords)¶ return self regridded to the new grid. One can use the regrid2.Regridder optional arguments as well.
Example
>>> new_cdmsVar = cdmsVar.regrid(newGrid) # uses libcf >>> new_cdmsVar = cdmsVar.regrid(newGrid, regridMethod = 'conserve', coordSys = 'cart')
- Parameters
- togridtogrid destination grid. CDMS grid
- missingOptional missing missing values
- orderOptional order axis order
- maskOptional mask grid/data mask
- **keyords
- keywords optional keyword arguments dependent on regridTool
- Returns
- regridded variable