Create time bins with a given duration. Time bins expanding over a day/night change will be split in two time bins.
createTimeBins(
timeRange,
timeBinDuration_sec,
timeZone,
sunriseSunset,
dnBins = TRUE,
crepBins = FALSE,
sunOrCivil = "civil",
crepuscule = "nauticalSolar"
)returns a dataframe with the time bins information
vector of length 2, with start and end of time range as POSIXct
duration of timeBins in seconds (numeric). for values <= 0 a duration of 1 hour will be set
time zone in which the time bins should be created as string, e.g. "Etc/GMT0"
dataframe with sunrise/sunset, civil dawn/dusk. computed with function 'twilight'
Logical. Default TRUE. Determines whether timebins based on day/night values (determined by the parameter 'sunOrCivil') are created.
Logical. Default FALSE. Determines whether timebins with crepuscular time phases are created (determined by the parameter 'crepuscule').
sunrise/sunset or civil dawn/dusk used to split day and night. Supported values: "sun" or "civil", default: "civil"
Used to split into crepusculeMorning, day, crepusculeEvening, and night. Set to “nauticalSolar” to use the time between nautical dusk/dawn and sunrise/sunset times to define the crepuscular period, or to "nauticalCivil" to use the time between nautical and civil dusk/dawn to define the crepuscular period, or to "civilSolar" to use the time between civil dusk/dawn and sunrise/sunset times to define the crepuscular period. Default is "nauticalSolar".
Fabian Hertner, fabian.hertner@swiss-birdradar.com; Birgen Haest, birgen.haest@vogelwarte.ch