d_sensor {htsr}R Documentation

Create, Modify or Remove a sensor

Description

Create, Modify or Remove a sensor. A shiny version of this function is available: link{ds_sensor}

Usage

d_sensor(
  fsq,
  op = "C",
  sta,
  sen,
  table,
  name_fld = NA,
  value_fld = NA,
  bku = TRUE
)

Arguments

fsq

Full name of the data base

op

Create (default), modify or remove C/M/R

sta

Station id

sen

Sensor id

table

Table of the sensor

name_fld

List of field names

value_fld

List of field values

bku

Automatic Backup TRUE (default) / FALSE

Details

If op is C, the fields sta, table and sen are compulsory and cannot be modified afterwards.

Allowed entries for table are: WL (water levels), DI (discharges), QU (Quality), PR (precipitations), WE (weather).

The field names are expressed in French for compatibility reason with Hydraccess. A translation is given in [].

If op is C or M, the following fields can be completed :

If op is R, all data corresponding to the sensor of the selected station are removed.

Value

Sensor created, modified or removed from the data base

Author(s)

P. Chevallier - Feb 2018-Dec 2022

See Also


[Package htsr version 1.2.0 Index]