adjust_temp: adjust temperature for wet and dry days

Description Usage Arguments Value Examples

View source: R/WGEN_temp_modifiers.R

Description

adjust temperature for wet and dry days

Usage

1
adjust_temp(ppt_df, temp_df, wk_list, mean_mult = 1)

Arguments

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

Value

dataframe of PPT and temp, with Tmax_C and Tmin_C adjusted for wet/dry days

Examples

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)

MartinHoldrege/precipr documentation built on Nov. 4, 2021, 11:10 a.m.