instantiates an object from class of createSubbasin
createSubbasin(name,precipitation,
inflow,Area,delayInflow,label,downstream,
transformMethod,lossMethod,UH,
transformParams,lossParams)
a string: the name of sub-basin to be instantiated
a vector : a time series of precipitation hytograph (mm)
a vector (optional): a time series of direct inflow rather than flows comming from upstream (cms)
the area of basin (Km^2)
an integer (optional): presenting the time steps to delay direct inflow time series
an integer: a unique number, as label
an integer: the code of downstream object
a string: the type of transformation method. Available types: "SCS"
, "snyder"
, and "user"
for user defined unit hydrograph
a string: the type of loss method. Available types: "SCS"
and "horton"
a data.frame: including the ordinates of user UH. the HU first collumn indicates time (Hr) and second collumn include flow rates (cms)
a list: list of parameters associated to the selcted type of transformMethod
:
Tlag
for "SCS"
and Ct
, Cp
, L
, and Lc
other for "snyder"
a list: list of parameters associated to the selcted type of lossMethod
:
CN
for "SCS"
and f0
, f1
, k
other for "horton"
a list: an object from class of createSubbasin