add_observations: Adds observation timeseries to a 'HS' object

View source: R/add_observations.R

add_observationsR Documentation

Adds observation timeseries to a 'HS' object

Description

Adds observation timeseries to a HS object. This is needed in order to evaluate performance of discharge estimates, or to perform data assimilation combining several estimates.

Usage

add_observations(HS, timeseries, unit, riverIDs, station_names = NULL)

Arguments

HS

An HS object.

timeseries

a data.frame with observations. Must contain column Date.

unit

The unit of values in timeseries.

riverIDs

A vector of riverID of the river segments in the column-order in timeseries.

station_names

a vector of names for the stations in timeseries. If not provided, station names are obtained from column names of timeseries.

Value

Returns the HS object with added list column observation_ts containing a timeseries, and column observation_station containing the name of observation stations.


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