This function computes a series of forest canopy gap statistics
ALS-derived gap as RasterLayer (
ALS-derived Canopy Height Model (CHM) RasterLayer (
# List of forest gaps statistics:
gap_id: gap id
gap_area - area of gap (m2)
chm_max - Maximum canopy height (m) within gap boundary
chm_min - Minimum canopy height (m) within gap boundary
chm_mean - Mean canopy height (m) within gap boundary
chm_sd - Standard Deviation of canopy heights (m) within gap boundary
chm_gini - Gini Coefficient of canopy heights (m) within gap boundary
chm_range - Range of canopy heights (m) within gap boundary
A data.frame containing forest canopy gap statistics
Carlos Alberto Silva.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.