Skip to contents

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.

Usage

create_input(model, BasinObs, BasinInfo)

Arguments

model

A string specifying the hydrological model (e.g., "GR4J", "TUW", "topmodel"). For a complete list see table in vignette("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, or topidx, 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 by airGR::CreateInputsModel().

  • For TUW, TUWsnow, snowsnow, and hydromad models, a renamed data frame is returned.

  • For topmodel, a list is returned including additional elements like delay and topidx.

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)
}