Description Usage Arguments Value Examples
View source: R/WGEN_temp_modifiers.R
adjust temperature for wet and dry days
1 | adjust_temp(ppt_df, temp_df, wk_list, mean_mult = 1)
|
ppt_df |
data frame of precip data (from generate_events()) |
temp_df |
dataframe of temp data from generate_temp() |
wk_list |
list of weakly temperature parameters from temp_wk_list() |
mean_mult |
scalar that mean is multiplied when increasing ppt intensity |
dataframe of PPT and temp, with Tmax_C and Tmin_C adjusted for wet/dry days
1 2 3 4 5 6 7 | params <- monthly_ppt_params(wx_data)
df1 <- markov_chain(params, start_date = "1980-01-01", end_date = "1980-12-31")
ppt_df <- generate_events(df1, params)
wk_list <- temp_wk_list(wx_data)
temp_df <- generate_temp(wk_list, start_date = "1980-01-01", end_date = "1980-12-31")
comb <- adjust_temp(ppt_df, temp_df, wk_list)
mean(comb$Tmax_C); mean(temp_df$Tmax_C)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.