discretizeRaster: Discretize raster to points.

Description Usage Arguments Value Note See Also

View source: R/preparation.r

Description

Discretize raster to points.

Usage

1
discretizeRaster(x, cellsize, type = "value", psf = "equal", sigma = 2)

Arguments

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.

Value

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.

Note

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.

See Also

discretizePolygon, ataCoKriging


maoguihu/atakrig documentation built on June 5, 2021, 8:48 a.m.