chm: Simple Canopy Height Model

View source: R/chm.R

chmR Documentation

Simple Canopy Height Model

Description

This function implements a simple grid-based canopy height model

Usage

chm(las = NA, las.proj = NA, las.reproj = NA, nx = 100, ny = 100,
  fun = max, silent = FALSE, plots = FALSE, geoTIFF = FALSE)

Arguments

las

Path or name of LAS file. Defaults to NA.

las.proj

Proj4 projection string to use for projection. Defaults to NA.

las.reproj

Proj4 projection string to use for reprojection. Defaults to NA.

nx

Number of pixels along the x-axis. For a 50m radius plot, nx=100 is 1m resolution. Defaults to 100.

ny

Number of pixels along the y-axis. For a 50m radius plot, ny=100 is 1m resolution. Defaults to 100.

fun

Function for the calculate of height values in each cell. Defaults to max.

silent

Boolean switch for the interactive display of plots. Defaults to FALSE.

plots

Boolean switch for the saving of plot files to the las.path folder. Defaults to FALSE.

geoTIFF

Boolean switch for the saving of projected GeoTIFF files to the las.path folder. Defaults to FALSE.

Value

The results of chm

Author(s)

Adam Erickson, adam.erickson@ubc.ca

References

http://link.springer.com/book/10.1007/978-94-017-8663-8

Examples

chm(las='C:/plot.las', las.proj='+init=epsg:26911', las.reproj=NA, nx=100, ny=100, fun=max, silent=FALSE, plots=FALSE, geoTIFF=FALSE)
chm(las='C:/plot.las', las.proj='+init=epsg:26911', las.reproj=NA, nx=100, ny=100, fun=function(x) quantile(x, 0.95), silent=FALSE, plots=FALSE, geoTIFF=FALSE)

adam-erickson/gapfraction documentation built on May 12, 2024, 6:15 p.m.