Description Usage Arguments Value Examples
View source: R/WGEN_temp_modifiers.R
A new (fake) mean temp on 'all' days needs to be calculated. Because the actual proportion of wet days decreases, this keeps the mean temp adjusted for wet days and dry days same as before. Otherwise decreasing the number of wet days would just elevate mean temperature.
1 | adjust_all_days_temp(Tdry, Twet, n_all, n_wet, mean_mult = 1)
|
Tdry |
mean temp on dry days |
Twet |
mean temp on wet days |
n_all |
total number of days |
n_wet |
total number of dry days |
mean_mult |
scalar that mean precip event is being multiplied by |
A new fake mean temperature on all days (will be higher if mean_mult > 1) This should be used as input to temp_modifer() functions, so that when there are fewer ppt events, dry days are adjusted up less, and wet days are adjusted down more
1 2 3 | # Tdry = 11; Twet = 9; n_all = 100; n_wet = 30
adjust_all_days_temp(11, 9, 100, 30) # original mean
adjust_all_days_temp(11, 9, 100, 30, mean_mult = 2) # adjust mean
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.