sunriset function from the maptools package, which uses algorithms from the National Oceanic and Atmospheric Administration (http://www.esrl.noaa.gov/gmd/grad/solcalc/).
metab_day(dat_in, stat_in)ecometab and should not be called explicitly.
ecometab, sunriset