GapStats: Forest Canopy Gaps Stats

Description Usage Arguments Details Value Author(s) Examples

View source: R/GapsStats.R

Description

This function computes a series of forest canopy gap statistics

Usage

1
GapStats(gap_layer, chm_layer)

Arguments

gap_layer

ALS-derived gap as RasterLayer (raster) object (output of getForestGaps function). An object of the classs RasterLayer.

chm_layer

ALS-derived Canopy Height Model (CHM) RasterLayer (raster) used in getForestGaps function. An object of the classs RasterLayer.

Details

# List of forest gaps statistics:

Value

A data.frame containing forest canopy gap statistics

Author(s)

Carlos Alberto Silva.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#Loading raster library
library(raster)

# ALS-derived CHM over Adolpho Ducke Forest Reserve - Brazilian tropical forest
data(ALS_CHM_CAU_2012)

# set height thresholds (e.g. 10 meters)
threshold<-10
size<-c(5,10^4) # m2

# Detecting forest gaps
gaps_duc<-getForestGaps(chm_layer=ALS_CHM_DUC, threshold=threshold, size=size)

# Computing basic statistis of forest gap
gaps_stats<-GapStats(gap_layer=gaps_duc, chm_layer=ALS_CHM_DUC)

ForestGapR documentation built on May 2, 2019, 1:26 a.m.