View source: R/create_HSgrid.R
create_HS | R Documentation |
HS
object from given inputCreates 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",
handle_negative = "zero"
)
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 |
handle_negative |
How to handle egative runoff values (not supported in hydrostreamer): "zero" sets negative runoff to 0, "error" stops execution and returns an error. @inheritParams raster_to_HS |
Returns a HS
object with columns
zoneID: unique ID
runoff_ts: a list column containing the runoff timeseries.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.