Learn R Programming

MetFns (version 2.2.0)

solar.long: Calculation of solar longitude

Description

Calculates solar longitude with respect to the equinox of 2000.0 for given year, month, day and time.

Usage

solar.long(year,month,day,time,prec=11)

Arguments

year

numeric vector of length 4 specifying year.

month

numeric vector specifying month of the year.

day

numeric vector specifying day.

time

numeric vector specifying time in hours.

prec

numeric vector specifying number of decimals of calculated solar longitude. By default it is equal to 11.

Value

solar.long returns numeric vector with a value between 0 and 360.

References

Steyaert C. (1991). Calculating the Solar Longitude 2000.0, WGN, Journal of the IMO, 19:2, 31-34.

See Also

filter.sol

Examples

Run this code
# NOT RUN {
## calculate solar longitude for June 22, 2006, at 4h UT, rounded to 3 decimals
solar.long(year=2006,month=6,day=22,time=4,prec=3)
# }

Run the code above in your browser using DataLab