create_HSweights: Creates a 'HSweights' object

View source: R/create_HSweights.R

create_HSweightsR Documentation

Creates a HSweights object

Description

Creates a list object with class HSweights. The river object can be obtained with river_network, weights with compute_river_weights or compute_area_weights, and grid with raster_to_HS.

Usage

create_HSweights(target, weights, source)

Arguments

target

A river network as an sf LINESTGRING object

weights

A data.frame with columns "riverID" in "zoneID", and "weight" corresponding to riverID in river, zoneID in HS and a numeric weight.

source

A HS object.

Value

Returns a HSweights object, which is a list of three components:

  • target: River network with routing information to be used in downscaling step.

  • weights: Weighting information for the downscaling step.

  • source: HS object with runoff timeseries information.


mkkallio/hydrostreamer documentation built on Oct. 14, 2023, 9:38 p.m.