Description Usage Arguments Details Value See Also Examples
View source: R/wgn_latent_rain.R
gen_WGN_ts
returns replicates of timeseries of a climate variable using the function wgn_latent_model
.
1 | gen_WGN_ts(nyears = 122, replicates = 20)
|
nyears |
number of years of data to be generated. |
replicates |
number of replicates of the timeseries to be generated. |
The parameters of the weather generator are stored in toyWGN_param.env. The user may use the function modify_namelist
to modfiy the default parameters of the weather generator. This WGN model uses the parameters:
mu vector of numbers of length 12; mean of the latent variable X for each month.
sigma vector of numbers of length 12; standard deviaion of the latent variable X for each month.
alpha vector of numbers of length 12; lag-1 autocorrelation coefficient of the latent variable X for each month.
lambda vector of numbers of length 12; exponent of the latent variable X for each month.
A list of length replicates
containing the replicates of nyears
of climate variable timeseries.
write_namelist
, modify_namelist
1 | wgn_data_rep <- gen_WGN_ts(nyears = 10, replicates = 5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.