Build Status |
---|
A collection of rainfall-runoff models. The package provides Linear Bucket, GR4J and other models.
The package can be installed with the Julia package manager. From the Julia REPL, type ]
to enter the Pkg REPL mode and run:
pkg> add RRModels
If you want to install the package directly from its github development site,
pkg> add http://github.com/petershintech/RRModels.jl
And load the package using the command:
using RRModels
julia> data = dataset("gr4j_sample")
julia> model = GR4J(350.0, 0.0, 40.0, 0.5, 0.0, 0.0)
GR4J Model:
X1 = 350.0
X2 = 0.0
X3 = 40.0
X4 = 0.5
Sp = 0.0
Sr = 0.0
julia> Q, AET = simulate(model, data.P, data.PET)