fCalcSunPosition: fCalcSunPosition

Description Usage Arguments Details Value Author(s)

Description

Calculate the position of the sun

Usage

1
2
fCalcSunPosition(DoY.V.n, Hour.V.n, Lat_deg.n, Long_deg.n, 
    TimeZone_h.n, useSolartime.b = TRUE)

Arguments

DoY.V.n

Data vector with day of year (DoY)

Hour.V.n

Data vector with time as decimal hour

Lat_deg.n

Latitude in (decimal) degrees

Long_deg.n

Longitude in (decimal) degrees

TimeZone_h.n

Time zone (in hours)

useSolartime.b

by default corrects hour (given in local winter time) for latitude to solar time << where noon is exactly at 12:00. Set this to FALSE to compare to code that uses local winter time

Details

This code assumes that Hour is given in local winter time zone, and corrects it by longitude to solar time (where noon is exactly at 12:00). Note: This is different form reference PVWave-code, that does not account for solar time and uses winter time zone. Set argument useSolartime.b to FALSE to use the local winter time instead.

Value

Data list with the following items:

SolTime

Solar time (SolTime, hours)

SolDecl

Solar declination (SolDecl, rad)

SolElev

Solar elevation with 0 at horizon (SolElev, rad)

SolAzim

Solar azimuth with 0 at North (SolAzim, rad)

Author(s)

AMM (Department for Biogeochemical Integration at MPI-BGC, Jena, Germany)


REddyProc documentation built on May 2, 2019, 5:19 p.m.