Creates a HS
from input where grid
is a polygon grid
representing the spatial units of runoff, and /coderunoff is a data.frame
containing column 'Date', and where column names match the grid IDs.
create_HS(zones, runoff, unit, zoneID = "zoneID", name = "runoff_1")
zones | An |
---|---|
runoff | a table of runoff where rows are timesteps and columns
correspond to specific polygons in |
unit | Unit of the runoff timeseries |
zoneID | Column name with unique IDs in |
name | Name of the runoff timeseries. If multiple runoff timeseries
are added to the same |
Returns a HS
object with columns
zoneID: unique ID
runoff_ts: a list column containing the runoff timeseries.