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.
Name | Type | Annotation |
---|---|---|
outputfileCoarseGridRectangular | filename | coarse grid |
outputfileFineGridRectangular | filename | fine grid with additional coarse grid values |
inputfileFineGridRectangular | filename | Digital Terrain Model |
multiplierLongitude | uint | Generalizing factor |
multiplierLatitude | uint | Generalizing factor |
volumeConserving | boolean | data are interpreted as heights above ellipsoid |