Datasets
Reto Stauffer
datasets.Rmd
Returns available data sets. Note that the current default is set to
type = "station"
(see gs_datasets()
) as this
package only allows for downloading stationdata.
library("gsdata")
(ds <- gs_datasets())
## type mode resource_id data_format response_formats
## 1 station historical histalp-v1-1y station geojson|csv
## 2 station historical klima-v1-1d station geojson|csv
## 3 station historical klima-v1-1h station geojson|csv
## 4 station historical klima-v1-1m station geojson|csv
## 5 station historical klima-v1-10min station geojson|csv
## 6 station historical tawes-v1-10min station geojson|csv
## 7 station current tawes-v1-10min station geojson|csv
## 8 station historical synop-v1-1h station geojson|csv
## url
## 1 https://dataset.api.hub.geosphere.at/v1/station/historical/histalp-v1-1y
## 2 https://dataset.api.hub.geosphere.at/v1/station/historical/klima-v1-1d
## 3 https://dataset.api.hub.geosphere.at/v1/station/historical/klima-v1-1h
## 4 https://dataset.api.hub.geosphere.at/v1/station/historical/klima-v1-1m
## 5 https://dataset.api.hub.geosphere.at/v1/station/historical/klima-v1-10min
## 6 https://dataset.api.hub.geosphere.at/v1/station/historical/tawes-v1-10min
## 7 https://dataset.api.hub.geosphere.at/v1/station/current/tawes-v1-10min
## 8 https://dataset.api.hub.geosphere.at/v1/station/historical/synop-v1-1h
The function gs_datasets()
returns a
data.frame
which includes a series of information
including:
-
type
: data set type (currently defaults totype = "station"
) -
mode
: historical or current (latest available observation) -
resource_id
: ID/name of the dataset or resource - … and some more
Most important are type
, mode
and
resource_id
which allow to download additional meta data
(see gs_metadata()
) as well as the data itself (see
gs_stationdata()
).