h_wl_di: Computation of the discharges from water-levels

View source: R/h_wl_di.R

h_wl_diR Documentation

Computation of the discharges from water-levels

Description

Computes a discharge time-series from water levels data and calibration curves

Usage

h_wl_di(fsq, sta, seni, seno, dstart = NA, dend = NA, dbo = TRUE)

Arguments

fsq

htsr data base

sta

Station Id.

seni

Input sensor Id (water levels)

seno

Output sensor Id (discharges)

dstart

Start date (NA by default)

dend

End date (NA by default)

dbo

Includes the result in the data base (TRUE by default)

Details

Calibration curves must exist in the data base.

If 'dbo' is TRUE, a discharge table "DI" and the sensor 'seno' must exist in the data base. The new discharge time-series overwrites the already existing data ; however, it is asked to confirm the operation. In any case the data base is previously backed up.

Value

Writes an hts file with the resulting discharges and optionally includes it in the data base.

Author(s)

P. Chevallier - Dec 2020 - Sep 2023

See Also

The functions ds_exp_hts and d_imp_htsare used for export the water levels, respectively import the discharges within the data base. The function u_exp_discalib included in p_discalib is used for loading the calibration curves.


htsr documentation built on Oct. 13, 2023, 5:10 p.m.