getangles: Read angles from a .p file.

Description Usage Arguments Details Value Author(s) Examples

Description

Reads leaf angles (angle, orientation or azimuth) from a plant file (a Yplant input file with extension .p, known as a pfile).

Usage

1
getangles(plant, whichangle='An.3')

Arguments

plant

An object of class plant3d, or the name of a pfile.

whichangle

The name of the angle, in quotes (see modifypfile)

.

Details

If the leaf angle is returned (An.3, the default), all angles are converted so that they are between 0 and 90 degrees. A warning is printed when any angle > 360, which may indicate problems in the data (this is uncommon).

Other angles may be read, see modifypfile for a list of the angles in a pfile.

Value

A vector of angles (in degrees).

Author(s)

Remko Duursma

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
# Two options:
# Get leaf angles from a pfile
ang <- getangles("someplant.p")

# Or from a constructed plant:
myplant <- constructplant("someplant.p","someleaf.l")
ang <- getangles(myplant)

## End(Not run)

YplantQMC documentation built on May 2, 2019, 5:50 p.m.