rasterZoneAnalyzer {fasteraster}R Documentation

Recognizes zones in the raster matrix and return a list of their analysis.

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

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

library(datasets)
rasterZoneAnalyzer(volcano, 120, 200, 20)

[Package fasteraster version 1.1.1 Index]