rg_br_get: Download meteorological data from the beratungsring stations...

Description Usage Arguments Source Examples

View source: R/download_beratungsring.R

Description

Functions for accessing the Meteorological Data from the beratungsring stations. The function rg_br_get can be used to download station measurements for the requested time period and stations. Information about valid station_codes and sensor names can be retrieved using the dataset br_info.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
rg_br_get(
  station_code,
  user,
  password,
  host,
  sensor_code = "simple",
  datestart = Sys.Date() - 1,
  dateend = Sys.Date(),
  progress = F
)

Arguments

station_code

integer; Id(s) of the stations.See br_info for all available stations and their ids

user

string, access credential

password

string, access password

host

string, host ip adress

sensor_code

string; Name of the sensor(s) of interest (Temperatur 2m for 2m air temperature). See br_info for all available sensors and their names. Use 'simple' to download the most common sensors or NULL to download all sensors

datestart

date; Starting date for the download

dateend

date; End date for the download

progress

display progress bar?

Source

https://github.com/GiulioGenova/SBR

Examples

1
2
3
##Not Run:
station_ids <- Rgadgets::br_info$st_id %>% unique()
data <- rg_br_get(station_code = station_ids, host = keyring::key_get('br_host'), password = keyring::key_get('br_password'), user = keyring::key_get('br_user'), sensor_code = NULL)

sitscholl/Rgadgets documentation built on Feb. 19, 2021, 1:24 a.m.