metab_day: Identify metabolic days in a swmpr time series
Description
Identify metabolic days in a swmpr time series based on sunrise and sunset times for a location and date. The metabolic day is considered the 24 hour period between sunsets for two adjacent calendar days. The function calls the sunriset function from the maptools package, which uses algorithms from the National Oceanic and Atmospheric Administration (http://www.esrl.noaa.gov/gmd/grad/solcalc/).
Usage
metab_day(dat_in, stat_in)
Arguments
dat_in
data.frame
stat_in
chr vector of station name including data type
Details
This function is only used within ecometab and should not be called explicitly.