astrocalc4r(day, month, year, hour, timezone, lat, lon, withinput = FALSE,
seaorland = "maritime", acknowledgment = FALSE)
astrocalc4r
depend on latitude, longitude, date and time of day. For example, solar zenith angles measured
at the same time of day and two different locations would differ due to
differences in location. Zenith angles at the same location and
two different dates or times of day also differ.Local noon is the time of day when the sun reaches its maximum elevation and minimum solar zenith angle at the observers location. This
angle occurs when the leading edge of the sun first appears above, or the trailing edge disappears below
the horizon (0.83o accounts for the radius of the sun when seen from the earth and for refraction by the atmosphere).
Day length is the time in hours between sunrise and sunset. Solar
declination and azimuth angles describe the exact position of the sun in
the sky relative to an observer based on an equatorial coordinate system (Meeus 2009). Solar declination
is the angular displacement of the sun above the equatorial plane. The
equation of time accounts for the relative
position of the observer within the time zone and is provided because it
is complicated to calculate. PAR isirradiance in lux (lx, approximately W m-2) at the surface of the
earth under clear skies calculated based on the solar zenith angle and assumptions about marine or terrestrial atmospheric
properties. astrocalc4r
calculates PAR for wavelengths between 400-700 nm. Calculations for other wavelengths
can be carried out by modifying the code to use parameters from Frouin et al. (1989). Following Frouin et al. (1989),
PAR is assumed to be zero at solar zenith angles >= 90o although some sunlight may be visible in the sky
when the solar zenith angle is < 108o. Angles in astrocalc4r
output are in degrees although radians are used
internally for calculations. Time data and results are in decimal hours (e.g. 11:30 pm = 23.5 h) local time but internal
calculations are in Greenwich Mean Time (GMT). The user must specify the local time zone in terms of +/- hours relative to GMT to link
local time and GMT. For example, the difference between Eastern Standard Time and GMT is -5 hours.
The user must ensure that any adjustments for daylight savings time are included in the timezone value. For example,
timezone=-6 for Eastern daylight time.
L. D. Jacobson, L. C. Hendrickson, and J. Tang. 2015. Solar zenith angles for biological research and an expected catch model for diel vertical migration patterns that affect stock size estimates for longfin inshore squid (Doryteuthis pealeii). Canadian Journal of Fisheries and Aquatic Sciences 72: 1329-1338.
Meeus, J. 2009. Astronomical Algorithms, 2nd Edition. Willmann-Bell, Inc., Richmond, VA. Seidelmann, P.K. 2006. Explanatory Supplement to the Astronomical Almanac. University Science Books, Sausalito, CA.
Seidelmann, P.K. 2006. Explanatory Supplement to the Astronomical Almanac. University Science Books, Sausalito, CA. This function is an R implementation of:
Jacobson L, Seaver A, Tang J. 2011. AstroCalc4R: software to calculate solar zenith angle; time at sunrise, local noon and sunset; and photosynthetically available radiation based on date, time and location. US Dept Commer, Northeast Fish Sci Cent Ref Doc. 11-14; 10 p. Available from: National Marine Fisheries Service, 166 Water Street, Woods Hole, MA 02543-1026, or online at http://www.nefsc.noaa.gov/nefsc/publications/. Note that the documentation may be easiest to obtain at http://www.nefsc.noaa.gov/publications/crd/crd1114/index.html
astrocalc4r(day=12,month=9,year=2000,hour=12,timezone=-5,lat=40.9,lon=-110)
Run the code above in your browser using DataLab