RHMS (version 1.3)

createSubbasin: creates a sub-basin object

Description

instantiates an object from class of createSubbasin

Usage

createSubbasin(name,precipitation,
inflow,Area,delayInflow,label,downstream,
transformMethod,lossMethod,UH,
transformParams,lossParams)

Arguments

name

a string: the name of sub-basin to be instantiated

precipitation

a vector : a time series of precipitation hytograph (mm)

inflow

a vector (optional): a time series of direct inflow rather than flows comming from upstream (cms)

Area

the area of basin (Km^2)

delayInflow

an integer (optional): presenting the time steps to delay direct inflow time series

label

an integer: a unique number, as label

downstream

an integer: the code of downstream object

transformMethod

a string: the type of transformation method. Available types: "SCS", "snyder", and "user" for user defined unit hydrograph

lossMethod

a string: the type of loss method. Available types: "SCS" and "horton"

UH

a data.frame: including the ordinates of user UH. the HU first collumn indicates time (Hr) and second collumn include flow rates (cms)

transformParams

a list: list of parameters associated to the selcted type of transformMethod: Tlag for "SCS" and Ct, Cp, L, and Lc other for "snyder"

lossParams

a list: list of parameters associated to the selcted type of lossMethod: CN for "SCS" and f0, f1, k other for "horton"

Value

a list: an object from class of createSubbasin

See Also

addObjectToBasin