discretizeRaster {atakrig}R Documentation

Discretize raster to points.

Description

Discretize raster to points.

Usage

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


[Package atakrig version 0.9.8 Index]