
Last chance! 50% off unlimited learning
Sale ends in
get_coords
returns a dataframe with the coordinates and elevation from
a station in a database of Hydroscope.
get_coords(subdomain = c("kyy", "ypaat", "emy"), stationID)
One of the subdomains of hydroscope.gr
A station ID
If subdomain
is one of "kyy"
(Ministry of Environment
and Energy), "ypaat"
(Ministry of Rural Development and Food),
"emy"
(National Meteorological Service) and stationID is not NULL,
returns a dataframe with station's coordinates and elevation from the
corresponding database of hydroscope.gr. Otherwise gives an error message.
If the station ID does not exist in the database, or the url from hydroscope could not parsed, returns a dataframe with NA values.
The dataframe columns are:
The station's ID from the database
The station's longitude in decimal degrees, ETRS89
The station's latitude in decimal degrees, ETRS89
The station's altitude, meters above sea level
European Terrestrial Reference System 1989 (ETRS), http://bit.ly/2kJwFuf
Stations' data are retrieved from the Hydroscope's databases:
Ministry of Environment, Energy and Climate Change, http://kyy.hydroscope.gr
Ministry of Rural Development and Food, http://ypaat.hydroscope.gr
National Meteorological Service, http://emy.hydroscope.gr
# NOT RUN {
# get station 200171 coords from the Greek Ministry of Environment and Energy
get_coords("kyy", 200171)
# get station data from the Greek National Meteorological Service
get_coords("emy", 20035)
# }
# NOT RUN {
get_coords("emy")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab