rasterZoneAnalyzer: Recognizes zones in the raster matrix and return a list of...

Description Usage Arguments Value Examples

Description

Takes a raster matrix and recognize zones exactly as the raster2vector function does. However does not return polygon vectors, but weight and center of mass for each polygone (or so called zone).

Usage

1
rasterZoneAnalyzer(raster, from = 0, to = 1, step = 0.1)

Arguments

raster

input matrix of numeric values.

from

lower (greater than) margin for recognizable zone values.

to

upper (less than or equal) margin.

step

values gradient.

Value

matrix of zones by four values: fill (ceiling values), weight (in cells), x and y of the mass center.

Examples

1
2

Example output

     [,1] [,2]     [,3]     [,4]
[1,]  200  174 20.25287 31.85632
[2,]  200    4 27.00000 45.25000
[3,]  160   55 29.69091 34.16364
[4,]  180  693 30.43290 31.93218
[5,]  160  854 41.15808 27.53513
[6,]  140 1093 42.31473 27.54163

fasteraster documentation built on May 2, 2019, 3:35 p.m.