sim_daily_from_annual: Daily Weather Generator Conditioned on Simulated Annual...

Description Usage Arguments Value

Description

Given a timeseries of simulated annual precipitation, simulate daily weather using the KNN and Markov Chain method.

Usage

1
2
3
4
5
6
sim_daily_from_annual(prcp_yr, obs_day, obs_prcp_yr, start_month = 10,
  include_leap_days = FALSE, n_knn_annual = 100, dry_wet_threshold = 0.3,
  wet_extreme_quantile_threshold = 0.8, adjust_annual_precip = TRUE,
  annual_precip_adjust_limits = c(0.9, 1.1), dry_spell_changes = 1,
  wet_spell_changes = 1, prcp_mean_changes = 1, prcp_cv_changes = 1,
  temp_mean_changes = 0)

Arguments

prcp_yr

simulated annual precipitation as zoo object

obs_day

observed daily weather as multi-column zoo object

obs_prcp_yr

observed annual precipitation as numeric vector

start_month

first month of the water year

include_leap_days

boolean flag to include leap days (default=FALSE)

n_knn_annual

number of years used for annual KNN sampling

dry_wet_threshold

threshold precipitation amount for dry/wet states

wet_extreme_quantile_threshold

threshold quantile for wet/extreme states

adjust_annual_precip

flag to adjust simulated daily precip to match simulated annual precip

annual_precip_adjust_limits

range of maximum annual precip adjustment factors

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)

prcp_mean_changes

adjustment factor(s) for mean precip (single value, or vector of length 12 for monthly)

prcp_cv_changes

adjustment factor(s) for precip CV (single value, or vector of length 12 for monthly)

temp_mean_changes

adjustment factor(s) for mean temp (single value, or vector of length 12 for monthly)

Value

a named list containing:

obs

the historical observation 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


HydrosystemsGroup/Weather-Generator documentation built on May 8, 2019, 8:34 a.m.