powered by
Calculates solar longitude with respect to the equinox of 2000.0 for given date.
date_sollong(date,prec=4)
character vector or factor of length one specifying date, given in "%Y-%m-%d %H:%M:%S" format (UTC timezone).
"%Y-%m-%d %H:%M:%S"
numeric vector specifying number of decimals of calculated solar longitude (between 2 and 5 decimals). By default, it is equal to 4.
sollong returns solar longitude, numeric vector of length one.
sollong
Solar longitude is calculated applying VSOP87 theory, using coefficients from data EarthVSOP87B.
EarthVSOP87B
Meeus, J. (1998). Astronomical algorithms (Second Edition). Willmann-Bell, Inc., Richmond, Virginia, p. 219.
http://neoprogrammics.com/vsop87
solar.long,sollong_date
# NOT RUN { ## calculate solar longitude corresponding to March 7, 2016, at 02:41 UTC date_sollong(date="2016-03-07 02:41") # }
Run the code above in your browser using DataLab