fCalcSunPosition

Share:

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)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.