daylight: Astronomic helper functions

Description Usage Arguments Details Value Details Examples

Description

Some useful calculations of the astronomic configuration of earth in relation to the sun.

sunsetangle

Usage

1
2
3
4
5
6
7
daylight(lat, day)

sunsetangle(lat, day)

declination(day)

rel_dist(day)

Arguments

lat

latitude

day

julian day (day of the year)

deg

angle in degrees

Details

Astronomic helper functions

Value

sunsetangle: sunset angle in degrees.

declination: solar declination in degrees.

rel_dist: relative distance earth-sun.

Details

daylight calculates the duration of the daylight period for a given date and location. It is based purely on geometrical calculation (i.e. does account for dispersion etc.).

rh2dewpoint calculates the sunset hour angle for a given latitude and date.

rh2dewpoint calculates the solar declination angle in degrees for a given day.

rel_dist calculates the relative distance of earth from sun in relation to the mean distance.

Examples

1
2
3
sunsetangle(50,1)
sunsetangle(50,1)
rel_dist(50,1)

achtmalklug/Retp documentation built on June 7, 2019, 12:47 a.m.