| Title: | Downloading MeteoSwiss Meteorological Observations via the Geoportal des Bundes (Swiss Federal Government Open Data Portal) |
|---|---|
| Description: | Small package built on top of the `swissgeo.core` package to easily retrieve meteorological observations from automated weather stations of the Swiss meteorological service (MeteoSchweiz). |
| Authors: | Reto Stauffer [aut, cre] (ORCID: <https://orcid.org/0000-0002-3798-5507>) |
| Maintainer: | Reto Stauffer <[email protected]> |
| License: | GPL-2 |
| Version: | 0.1-0 |
| Built: | 2026-09-18 11:14:44 UTC |
| Source: | http://codeberg.org/retostauffer/msdata |
MeteoSwiss Datasets
ms_datasets(...)ms_datasets(...)
... |
forwarded to sg_collections, currently
|
Reto
MeteoSwiss Datasets
ms_metadata(id, language = "en", cachedir = NULL, ndays = 2, ...) ## S3 method for class 'ms_metadata' plot(x, what = "station_height_masl", labels = "station_abbr", ...)ms_metadata(id, language = "en", cachedir = NULL, ndays = 2, ...) ## S3 method for class 'ms_metadata' plot(x, what = "station_height_masl", labels = "station_abbr", ...)
id |
character, id of the dataset (collection). |
language |
character, defaults to \"en\". |
cachedir |
|
ndays |
numeric, number of days to re-use cached file if |
... |
forwarded to sg_download_assets or the default |
x |
object of class |
what |
character, name of variable to be plotted. |
labels |
|
A list with three elements is returned containing
data inventory information ($datainventory; tibble data frame),
a list of all parameters with description ($datainventory; tibble data frame),
as well as a simple feature data frame with all available stations ($stations).
Reto
Downloading Station Data
ms_stationdata( id, stations, resolution = c("h", "t", "d", "m", "y"), parameters = NULL, start = NULL, end = NULL, cachedir = NULL, verbose = FALSE, language = "en" ) ## S3 method for class 'ms_stationdata' print(x, ...) ## S3 method for class 'ms_stationdata' head(x, n = 6L, ...) ## S3 method for class 'ms_stationdata' tail(x, n = 6L, ...) ## S3 method for class 'ms_stationdata' plot(x, ...)ms_stationdata( id, stations, resolution = c("h", "t", "d", "m", "y"), parameters = NULL, start = NULL, end = NULL, cachedir = NULL, verbose = FALSE, language = "en" ) ## S3 method for class 'ms_stationdata' print(x, ...) ## S3 method for class 'ms_stationdata' head(x, n = 6L, ...) ## S3 method for class 'ms_stationdata' tail(x, n = 6L, ...) ## S3 method for class 'ms_stationdata' plot(x, ...)
id |
the identifier of the dataset (collection). |
stations |
vector with station abbreviations (station identifiers). Not case sensitive. |
resolution |
character, temporal resolution ( |
parameters |
if |
start |
|
end |
|
cachedir |
|
verbose |
logical, defaults to |
language |
forwarded to |
x |
object of class |
... |
forwarded to |
n |
integer, number of observations to be returned. |
On success a zoo object or a list of zoo objects is returned (if multiple stations are processed at the same time).
Reto