calcSolarZenith: Calculate solar zenith angle from timestamp

Description Usage Arguments Value Examples

Description

Given the timestamp, location and time zone calculate the solar zenith angle for a observer. Requires package insol.

Usage

1
calcSolarZenith(time_stamp, latitude, longitude, timezone = 0)

Arguments

time_stamp

A timestamp that can be parsed by POSIXct, such ISO8601. This must be UTC.

latitude

Latitude of observer in decimal degrees, west is negative.

longitude

Latitude of observer in decimal degrees, south is negative.

timezone

Timezone of timestamp, west is negative.

Value

The Solar Zenith Angle in degrees

Examples

1
2
3
4
5
6
time_stamp = "2014-11-26 11:30:26"
latitude = 36.529688
longitude = -6.292657
calcSolarZenith(time_stamp, latitude, longitude, timezone=0)
compare to https://www.nrel.gov/midc/solpos/spa.html
retrieved 2016-07-16: 11/26/2014,11:30:00,58.339855

edwardpmorris/FASTSpectra documentation built on May 15, 2019, 11:03 p.m.