extractCrepuscular | R Documentation |
Extract crepuscular light segments
extractCrepuscular(tagdata, twilights, adjust.interval = 0,
filter.threshold = NULL)
tagdata |
a dataframe with columns |
twilights |
a dataframe generated by
|
adjust.interval |
timing adjustment for sunset intervals. |
filter.threshold |
|
Extract the crepuscular subsets of the light data, given a
dataframe of start and end points generated by
findCrepuscular
.
The adjust.interval
argument can be used to specify a
timing adjustment for tags that report the maximum light level
observed in the preceeding sampling interval. If this argument is
zero, no adjustment is made, otherwise the timestamps of sunset
intervals will be adjusted by this interval to compensate for the
recording behaviour of the tag.
If filter.threshold
is non NULL
, the light levels
are filtered to remove shaded observations. The light levels at
sunrise and sunset are assumed to be monotonic increasing, and the
running maximum in the direction of day is calculated. Light
levels that are filter.threshold
units below the running
maximum are removed.
Returns a dataframe with columns
Date |
the date and time of the observation |
Light |
the recorded light level |
Segment |
an integer identifying the segment |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.