readl: Read a Yplant leaf file

Description Usage Arguments Details Value Author(s) See Also

View source: R/readl.R

Description

Reads a Yplant leaf file (.l or .lf) into an object of class leaffile.

Usage

1
readl(lfile = NA)

Arguments

lfile

Name of the leaf file (character string).

Details

NOTE: if there are more than one leaf type type in the leaffile, it only reads the first one. At the moment, YplantQMC only uses one leaf file for all leaves in the canopy.

Contrary to the original Yplant, readl is a bit picky with leaffiles: there must be a point in the leaffile where X=0 (apart from the first and last points), which is used to find the 'midrib', which in turn is used to calculate leaf length.

Value

An object of class leaffile. Currently, only a plot method exists (see plot.leaffile).

Author(s)

Remko Duursma

See Also

plot.leaffile


YplantQMC documentation built on May 29, 2017, 7:02 p.m.

Related to readl in YplantQMC...