metab_day: Identify metabolic days in a time series

Description Usage Arguments Details See Also

View source: R/swmpr_misc.R

Description

Identify metabolic days in a 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

1
2
3
4
metab_day(dat_in, ...)

## Default S3 method:
metab_day(dat_in, tz, lat, long, ...)

Arguments

dat_in

data.frame

...

arguments passed to or from other methods

tz

chr string for timezone, e.g., 'America/Chicago'

lat

numeric for latitude

long

numeric for longitude (negative west of prime meridian)

Details

This function is only used within ecometab and should not be called explicitly.

See Also

ecometab, sunriset


SWMPr documentation built on Feb. 9, 2018, 6:08 a.m.