sal: Calculate the projected surface area of a tilted plane

Description Usage Arguments Author(s) See Also Examples

View source: R/sal.R

Description

Retrieves the projected area of the surface in area units.

Usage

1
sal(x, LA)

Arguments

x

Numeric vector, commonly the output of functions of the star family, containing STAR (%).

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
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()

leafSTAR documentation built on May 2, 2019, 3:35 p.m.

Related to sal in leafSTAR...