calc_p_W: probability of rain each day based on mkv_doy

Description Usage Arguments Value Examples

View source: R/markov_in_modifiers.R

Description

probability of rain each day based on mkv_doy

Usage

1
calc_p_W(mkv_doy, adjust_for_truncnorm = FALSE)

Arguments

mkv_doy

dataframe of daily markov ppt transition probabilities

adjust_for_truncnorm

logical, whether to adjust the number of expected wet days based on fact that the weather generator uses a truncated normal distribution (i.e. some 'wet' days then become dry)

Value

numeric vector giving probability of rain each day (non conditional)

Examples

1
2
3
data <-data.frame(rSOILWAT2::dbW_weatherData_to_dataframe(rSOILWAT2::weatherData))
mkv_doy <- rSOILWAT2::dbW_estimate_WGen_coefs(data)[[2]]
calc_p_W(mkv_doy = mkv_doy)

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