d_station: Create, Modify or Remove a station

Description Usage Arguments Details Value Author(s) See Also

View source: R/d_station.R

Description

Create, Modify or Remove a station in a tshm data base. A shiny version of this function is available: ds_station.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
d_station(
  fsq,
  op = "C",
  sta = NA,
  ty_st = NA,
  name_st = NA,
  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

ty_st

Station type: "H" hydro or "M" meteo

name_st

Station name

name_fld

List of field names

value_fld

list of field values

bku

Automatic Backup TRUE (default) / FALSE

Details

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

If op is C, the fields Id_Station (sta), Type_Station and Nom (name_st) are compulsory. The field Nom (name_st) can be modified afterwards.

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

If op is M, station type and station id cannot be modified. The sensor data corresponding to the station are conserved.

If op is R, all data and sensors of the station are removed.

Value

Station created, modified ou removed from the data base

Author(s)

P. Chevallier - Jan 2018-Nov 2020

See Also


htsr documentation built on Jan. 3, 2022, 5:10 p.m.