d_sensor {htsr} | R Documentation |
Create, Modify or Remove a sensor. A shiny version of this function
is available: link{ds_sensor}
d_sensor(
fsq,
op = "C",
sta,
sen,
table,
name_fld = NA,
value_fld = NA,
bku = TRUE
)
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 |
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 :
[Nature] Nature= as.character(NA),
[Description] Description = as.character(NA),
[Comment] Commentaire= as.character(NA),
[Limni id] Code_Limni= as.character(NA),
[Principal] Principal = as.logical(NA),
[Fictive] Fictif = as.logical(NA),
[Daily update] Maj_Journaliers = as.logical(NA),
[Translation update] Maj_Traduction = as.logical(NA),
[Automatic acquisition] Acquisition_Auto = as.logical(NA),
[Operationnal] Operationnel = as.logical(NA),
[Instantaneous list] Liste_Inst = as.character(NA),
[Daily list] Liste_Jour = as.character(NA),
[Monthly list] Liste_Mois = as.character(NA),
[Aggregation] Agregation = as.character(NA),
[Time shift] Decalage_Temps = as.numeric(NA),
[Min] Mini = as.numeric(NA),
[Max] Maxi = as.numeric(NA),
[Gradient] Gradient_Maxi = as.numeric(NA),
[Accuracy] Precision = as.numeric(NA),
[Decimals] Decimales = as.numeric(NA),
[Slope] Pente = as.numeric(NA))
If op is R, all data corresponding to the sensor of the selected station are removed.
Sensor created, modified or removed from the data base
P. Chevallier - Feb 2018-Dec 2022
d_inventory
or ds_inventory
to explore the
data base content;
ds_exp_hts
to extract a time-series;
d_create, d_table
to create a data base and/or create/remove
a table ;
d_station
or ds_station
for create/remove a station.