Learn R Programming

RSSOP (version 1.1)

createReservoir: Creates A Reservoir Object

Description

this function creates a reservoir object usning geometrical specifications

Usage

createReservoir(type = "storage", name = "resrvoir1", reservoirCode = 1, downstreamReservoirCode, geometry = list(sMin=NULL, sMax=NULL, volumeArea=NULL))

Arguments

type
the type of reservoir, "storage" and "hydropower". hydropower is not available in this version
name
a string representing the name of reservoir object
reservoirCode
an unique integer code
downstreamReservoirCode
the code of reservoir downstream
geometry
a list, include maximum and minimum volumes of reservoir and a data frame for volume-area rating curve whose first column includes area (square KM) and the second column is Volume (MCM)

Value