View source: R/apply_dd_filters.R
apply_dd_filters | R Documentation |
Apply filters to prepare data for degree-day calculation
apply_dd_filters(
dat,
trend_threshold = 4,
superchill_threshold = -0.7,
max_season = 540,
full_season = TRUE,
heat_threshold = 18,
n_hours = 24
)
dat |
Data frame with at least three columns: |
trend_threshold |
The threshold for "trending up". Default is
|
superchill_threshold |
The threshold for "superchill". Default is
|
max_season |
The length of the growing season in months for groups that
have no temperature observations below |
full_season |
Logical argument. The default, If |
heat_threshold |
The threshold for heat stress. Default is
|
n_hours |
Length of heat stress interval in hours (default is
|
Returns dat
filtered for days that will be used to calculate
degree-days at DEPTH
. Includes observations that start after the
4-degree trending up threshold and end 1 minute before the first
observation of superchill for each season; observations that occur during a
heat stress events are removed.
An additional column SEASON
is included to label the growing seasons
("S1", "S2", ...). Some observations may be duplicated in consecutive
seasons.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.