chm: Simple Canopy Height Model

Description Usage Arguments Value Author(s) References Examples

View source: R/chm.R

Description

This function implements a simple grid-based canopy height model

Usage

1
2
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

1
2
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 5, 2019, 6:57 p.m.