WGEN is a stochastic weather generator originally developed in the 1980s in Fortran at the US Department of Agriculture Agricultural Research Service (Richardson and Wright 1984). It uses monthly and annual statistics to generate daily time series of precipitation, minimum temperature, maximum temperature, and solar radiation.
Use the WGEN PAR model to generate the parameter inputs for this model.
Download the Model File:
Comments
8 comments
Model version 1.015 released on 4 Jan, 2019
Version Report
Model version 1.020 released on 11 Jan, 2019
Version Report
Model version 1.024 released on 25 Jan, 2019
Version Report
The harmonic value "x" in the temperature container should have an initial condition of vector(0) unless you are running it deterministically for verification purposes. This has been fixed using an IF statement:
if(Temp_Determ, vector(-0.3513, -1.754, 0.6244), vector(0))
Where "Temp_Determ" is set to False by default. Only set this to True if you need to run a deterministic validation run.
I was using a Random Choice element for determining the wet/dry state but it's not possible to use this if you want to switch to a deterministic run for validation. I rolled this back to an earlier version of the markov function that uses a stochastic with uniform distribution instead. This is how the FORTRAN code is implemented.
Model version 1.025 released on 7 Feb, 2019
Version Report
Model version 1.026 released on 6 Mar, 2019
Version Report
Model version 1.029 released on 13 May, 2019
Version Report:
1. Added support for units so that data can be entered in terms of metric or English units.
2. Added results to support the differences in units
Model version 1.031 released on 11 September, 2019
Version Report:
Model version 1.035 released on 17 December, 2019
Version Report:
These changes did not affect the underlying calculations in any way but make it easier to port the model to another model, which will need to carry those unit dimensions forward.
Please sign in to leave a comment.