instantiates an object from class of createSubbasin
# S3 method for default
createSubbasin(name="Unttitled",
precipitation,inflow=NA,Area,delayInflow=1,
label,downstream=NA,
transformMethod="SCS",lossMethod="SCS",UH=NA,
transformParams=list(Tlag=NULL,Cp=NULL,
Ct=NULL,L=NULL,Lc=NULL),
lossParams=list(CN=NULL,f0=NULL,
f1=NULL,k=NULL))
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 drainage 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