sal {leafSTAR} | R Documentation |
Calculate the projected surface area of a tilted plane
Description
Retrieves the projected area of the surface in area units.
Usage
sal(x, LA)
Arguments
x |
Numeric vector, commonly the output of functions of the |
LA |
Numeric vector containing the total area of the surface of each observation. |
Author(s)
Agustina Ventre-Lespiaucq and Silvia Santamaria Bueno.
See Also
SAL can be calculated with STAR data coming from star
, simu.star
, star.app
, and simu.star.app
Examples
data(guava)
## Calculate SAL for a given location, date and time
gua<-star(guava,lat=40.82,long=-4.21,local.time=12,tz=1,
Ahmes=FALSE,ID=NULL,pitch=guava$pitch,roll=guava$roll,
horiz=FALSE,course=guava$course,date=30,o.format=NULL)
sal(gua,LA=guava$LA.cm2)
## Calculate SAL from simu.star()
sim.gua<-simu.star(guava,lat=40.82,long=-4.21,local.time=12,tz=1,
Ahmes=FALSE,ID=NULL, pitch=guava$pitch,roll=guava$roll,
horiz=FALSE,course=guava$course,date=30,o.format=NULL,
c.hour=c(7,9.5,12),c.date=30,c.lat=40.8,c.long=-4.2,c.tz=1,
LA=guava$LA.cm2,details=TRUE)
sal.guava<-sal(sim.gua$STAR,LA=sim.gua$LA)
#sal()
[Package leafSTAR version 1.0 Index]