d_station {htsr} | R Documentation |
Create, Modify or Remove a station in a tshm data base. A shiny version of this function is
available: ds_station
.
d_station(
fsq,
op = "C",
sta,
ty_st = NA,
name_st = NA,
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 |
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 |
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 :
[Order] Ordre = as.character(NA),
[Station type] Type_Station = as.character(type_st),
[Station id] Id_Station = as.character(sta),
[Second station Id] Id_Secondaire = as.character(NA),
[Third station id] Id_Tertiaire = as.character(NA),
[Meteo type] Type_Meteo = as.character(NA),
[Name] Nom = as.character(name_st),
[Country] Pays = as.character(NA),
[Zone] Zone = as.character(NA),
[Sub-zone] SousZone = as.character(NA),
[Large basin] GrandBassin = as.character(NA),
[Basin] Bassin = as.character(NA),
[Small basin] PetitBassin = as.character(NA),
[River] Riviere = as.character(NA),
[Manager] Gestionnaire = as.character(NA),
[Latitude] Latitude = as.numeric(NA),
[Longitude] Longitude = as.numeric(NA),
[Altitude] Altitude = as.integer(NA),
[Basin area] Superficie_bv = as.numeric(NA),
[Starting month of hydro year] Mois_Debut_Hydro = as.numeric(NA),
[Starting activity date] Debut_Activite = as.numeric(NA),
[Activity] Activite = as.logical(NA),
[Yes/No criterion] Critere_OuiNon = as.logical(NA),
[Yes/No second criterion] Critere_OuiNon2 = as.logical(NA),
[Numeric criterion] Critere_Numerique = as.numeric(NA),
[Text criterion] Critere_Texte = as.character(NA),
[Observer name] Nom_Observateur = as.character(NA),
[Address] Adresse = as.character(NA),
[Teletransmission] Teletransmission = as.logical(NA),
[Recorder] Enregistreur = as.logical(NA),
[Fictive] Fictive = as.logical(NA),
[Comment] Commentaire = as.character(NA),
[Flag] Flag = as.logical(NA),
[District] District = as.character(NA),
[Place] Localite = as.character(NA)
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.
Station created, modified ou removed from the data base
P. Chevallier - Jan 2018-Dec 2022
d_inventory
or ds_inventory
for exploring the
data base content;
ds_exp_hts
for extracting a time-series;
d_table
for creating a data base and/or creating/removing
a table ;
d_sensor
for creating, modifying or removing a sensor.