rcatool.utils.grids.fnRemapConOperator
- rcatool.utils.grids.fnRemapConOperator(rgrLonS, rgrLatS, rgrLonT, rgrLatT, rgrLonSBNDS=None, rgrLatSBNDS=None, rgrLonTBNDS=None, rgrLatTBNDS=None)[source]
File name: fnRemapConOperator Author: Andreas Prein E-mail: prein@ucar.edu Date created: 26.05.2017 Date last modified: 26.05.2017
Generates an opperator to coservatively remapp data from a source rectangular grid to an target rectangular grid.
- Parameters:
rgrLonS (arrays) – Source grid longitude and latitude values
rgrLatS (arrays) – Source grid longitude and latitude values
rgrLonT (arrays) – Target grid longitude and latitude values
rgrLatT (arrays) – Target grid longitude and latitude values
rgrLonSBNDS (arrays) – Source grid longitude and latitude grid point boundaries (corners). These must be given in the structure (lat, lon, vertices) where vertices are the four corners of each grid point. If not provided (default) then corners are calculated using fnCellCorners.
rgrLatSBNDS (arrays) – Source grid longitude and latitude grid point boundaries (corners). These must be given in the structure (lat, lon, vertices) where vertices are the four corners of each grid point. If not provided (default) then corners are calculated using fnCellCorners.
rgrLonTBNDS (arrays) – Target grid longitude and latitude grid point boundaries (corners). See above for more info.
rgrLatTBNDS (arrays) – Target grid longitude and latitude grid point boundaries (corners). See above for more info.
- Returns:
grConRemapOp – opperator that contains the grid cells and their wheights of the source grid for each target grid cell
- Return type:
dictionary