GriddedDataReduceSampling

Generate coarse grid by computing area weighted mean values. The number of points is decimated by averaging integer multiplies of grid points (multiplierLongitude, multiplierLatitude).

if volumeConserving is set, data are interpreted as heights above ellipsoid and the tesseroid volume \[ V=\int_r^{r+H}\int_{\varphi_1}^{\varphi_2}\int_{\lambda_1}^{\lambda_2} r^2\cos\varphi\,d\varphi\,d\lambda\,dr \]is conserved, where $r$ is the radius of the ellipsoid at grid center and $(\varphi_1-\varphi_2)\times(\lambda_1-\lambda_2)$ are the grid cell boundaries. This is meaninful for Digital Elevation Models (DEM).

The fine grid can be written, where the first coarse grid values (data0) are additionally appended.

NameTypeAnnotation
outputfileCoarseGridRectangular
filenamecoarse grid
outputfileFineGridRectangular
filenamefine grid with additional coarse grid values
inputfileFineGridRectangular
filenameDigital Terrain Model
multiplierLongitude
uintGeneralizing factor
multiplierLatitude
uintGeneralizing factor
volumeConserving
booleandata are interpreted as heights above ellipsoid