Polygonizes a raster and adds the values in the raster stack to a data frame
in list column runoff_ts
.
raster_to_HS( rasters, unit, date, timestep = NULL, aoi = NULL, names = NULL, verbose = FALSE )
rasters | A raster object, or a list of raster objects, or a list of
URIs to files readable by |
---|---|
unit | Unit of the timeseries, coercable with |
date | Date of the first layer in |
timestep | Length of timestep in raster. Currently supporting
|
aoi | Area of interest as an 'sf' polygon object, 'SpatialPolygons', or 'SpatialPolygonsDataFrame'. Optional, but recommended for all applications. |
names | A name (names) for the runoff timeserie(s). |
verbose | Print progress indication or not. |
See create_HS
.