sim_daily: Run Daily Weather Simulation

View source: R/sim_daily.R

sim_dailyR Documentation

Run Daily Weather Simulation

Description

Run Daily Weather Simulation

Usage

sim_daily(historical, n_year, dry_wet_threshold = 0.3,
  wet_extreme_quantile_threshold = 0.8, start_month = 10,
  start_water_year = 2000, include_leap_days = FALSE,
  dry_spell_changes = 1, wet_spell_changes = 1)

Arguments

historical

historical climate dataframe

n_year

number of simulation years

dry_wet_threshold

threshold precipitation amount for dry/wet states

wet_extreme_quantile_threshold

threshold quantile for wet/extreme states

start_month

initial month of the water year

start_water_year

initial water year of simulation

include_leap_days

include leap days in simulation time series

dry_spell_changes

adjustment factor(s) for dry spell durations (single value, or vector of length 12 for monthly)

wet_spell_changes

adjustment factor(s) for wet spell durations (single value, or vector of length 12 for monthly)

Value

a named list containing:

x

the historical dataset used to train the simulation

state_thresholds

monthly precipitation thresholds for defining Markov states based on the historical dataset

transition_matrices

monthly transition matrices based on the historical dataset

state_equilibria

monthly state equilibria probabilities

out

a data frame of the simulated daily weather


walkerjeffd/weathergen documentation built on July 26, 2022, 7:20 a.m.