Hymod.jl API
Hymod.randomparams
— Functionrandomparams()
Function to create a random set of parameters as kwargs for Hymod.simulate()
Hymod.hargreaves
— Functionhargreaves(forcings::DataFrame; tmincol::Symbol = :tmin, tmaxcol::Symbol = :tmax, dtcol::Symbol = :datetime)
Function to calculate PET using Hargreves equation.
hargreaves(tmin::AbstractArray, tmax::AbstractArray, dts::AbstractArray)
Function to calculate PET using Hargreves equation.
hargreaves(tmin::Real, tmax::Real, dts::Date)
Function to calculate PET using Hargreves equation.
Hymod.simulate
— Functionsimulate(forcings::DataFrame; precipcol::Symbol = :precip, petcol::Symbol = :pet, kwargs...)
Function to simulate discharge using Hymod rainfall-runoff model.
simulate(precip::AbstractArray, pet::AbstractArray; initflow::Bool = true, cmax::Float64 = 1.0, bexp::Float64 = 0.0, alpha::Float64 = 0.2, ks::Float64 = 0.01, kq::Float64 = 0.5)
Function to simulate discharge using Hymod rainfall-runoff model
Hymod.calibrate
— Functioncalibrate(forcing::DataFrame, paramspace::Dict, nsamples::Int64; precipcol::Symbol = :precip, petcol::Symbol = :pet, obscol::Symbol = :obs, savefinal::Bool = false)
Function to calibrate Hymod rainfall-runoff model
Hymod.nse
— Functionnse(y_true::AbstractArray, y_pred::AbstractArray)
Function to calculate Nash-Sutcliffe model efficiency coefficient
Hymod.linearreservoir
— Functionrandomparams(xslow::Float64, inflow::Float64, Rs::Float64)
Linear reservoir routing function