createGrid: Creates a grid of squared polygons that fully cover the...

View source: R/createGrid.R

createGridR Documentation

Creates a grid of squared polygons that fully cover the spatial extent of the study area. Study area is defined by the Raster Layers (e.g. the Hansen data sets) thar are used as inout to calculate the forest fragmentation statistics.

Description

Creates a grid of squared polygons that fully cover the spatial extent of the study area. Study area is defined by the Raster Layers (e.g. the Hansen data sets) thar are used as inout to calculate the forest fragmentation statistics.

Usage

createGrid(rasters = NULL, spacing = 500)

Arguments

rasters

A raster stack with the forest map rasters.

spacing

A numeric vector defining the spacing of grids in meters, e.g. "500" will create grids of size 500m * 500m. "500" will be the default

Value

A raster stack with the two layers per class in the 'classValue' object.


mapme-initiative/mapme.forest documentation built on April 15, 2022, 4:50 a.m.