discretizeRaster {atakrig} | R Documentation |
Discretize raster to points.
discretizeRaster(x, cellsize, type = "value", psf = "equal", sigma = 2)
x |
a RasterLayer object. |
cellsize |
cell size of discretized grid. |
type |
"value", "nodata", "all": whether only valid pixels, or only NODATA pixles, or all pixels extracted. |
psf |
PSF type, "equal", "gau", or user defined PSF matrix (normalized). |
sigma |
standard deviation for Gaussian PSF. |
a discreteArea object: list(areaValues, discretePoints).
areaValues |
values of areas: data.frame(areaId,centx,centy,value), where areaId is polygon id; centx, centy are centroids of polygons. |
discretePoints |
discretized points of areas: data.frame(areaId,ptx,pty,weight), where ptx, pty are discretized points; by default, weight is equal for all points. |
Point weight is normalized for each polygon. Weight need not to be the same for all points of a polygon. They can be assigned according to specific variables, such as population distribution.
discretizePolygon, ataCoKriging