sf LINESTRING
or sf POLYGON
objects. Allows use of
simple Area Weighted Interpolation, Area-to-line interpolation, Dasymetric
Mapping, Pycnophylactic Interpolation, or combined Pycnophylactic-Dasymetric
Interpolation.R/interpolate_runoff.R
interpolate_runoff.Rd
The river network can be any of three options: 1) a river network consisting of LINESTRINGs, in which case Area-to-Line interpolation is used. 2) A network of POLYGONs, in which case Areal Interpolation (AWI, DM, or PP) is used. 3) both LINESTRING river network, and a POLYGON network describing the catchments of each individual segment of the LINESTRING network. In this case, Areal Interpolation is used. The third option is useful for routing purposes. If only catchments are given, only instantaneous routing can be used, because river line length cannot be derived from polygon areas.
interpolate_runoff( HS, river, basins = NULL, dasymetric = NULL, pycnophylactic = NULL, n = 10, intensive = TRUE, weights = NULL, aoi = NULL, riverID = "riverID", verbose = FALSE )
HS | A 'HS' object, obtained with |
---|---|
river | An 'sf' linestring or polygon feature representing a river network |
basins | An 'sf' polygon object with corresponding catchments, if river input is a linestring. Optional. |
dasymetric | Column name in |
pycnophylactic | Column in |
n | Number of iterations when using pycnophylactic interpolation.
Default |
intensive | Whether the pycnophylactic variable is intensive (density, like runoff in mm), or not (in which case it is extensive, or counts like runoff in volume). |
weights | Name of a column in |
aoi | An area of interest ('sf' polygon object) used to intersect
|
riverID | A character string which specifies the name of the column in
|
verbose | Whether or not print progress indicators. |
Returns a HS
object, containing the following
elements:
riverID
. Unique identifier
runoff_ts
. Interpolated runoff timeseries at each river
reach.
The selection of areal interpolation method is determined by the input to the
function. If dasymetric
and pycnophylactic
are NULL (default),
simple Area Weighted Interpolation or Area-to-Line Interpolation is used. If
dasymetric
variable is given, Dasymetric Mapping is used instead.
If pycnophylactic
is given, the function performs Pycnophylactic
Interpolation. And if both dasymetric
and pycnophylactic
are
given, the function first performs Pycnophylactic Interpolation, which is
further refined by the given dasymetric variable. Note that pycnophylactic
interpolation is only available for polygon networks. Catchments for
linestring networks can be estimated using river_voronoi
,
allowing pycnophylactic interpolation for line networks.