
Create Model Input Structure
create_input.Rd
Creates an input structure tailored to the specified hydrological model. The function supports models from the airGR, TUWmodel, hydromad, and topmodel packages. The structure and content of the input depend on the model's requirements.
Arguments
- model
A string specifying the hydrological model (e.g.,
"GR4J"
,"TUW"
,"topmodel"
). For a complete list see table invignette("model_overview")
.- BasinObs
A data frame containing time series of meteorological and hydrological data, typically created using
load_meteo_data
.- BasinInfo
A list containing spatial and catchment-specific information such as
HypsoData
,delay
, ortopidx
, depending on the model.
Value
A model-specific input object, either a data frame, list, or S3 class, depending on the model type.
Details
For
airGR
models, the function returns an object created byairGR::CreateInputsModel()
.For
TUW
,TUWsnow
,snowsnow
, andhydromad
models, a renamed data frame is returned.For
topmodel
, a list is returned including additional elements likedelay
andtopidx
.
Examples
if (FALSE) {
BasinObs <- load_meteo_data("D:/input/airGR/HSU_2044.rds")
BasinInfo <- list(HypsoData = c(500, 600, 700), delay = 2, topidx = runif(10))
input <- create_input("GR4J", BasinObs, BasinInfo)
}