riem_measures {riem}R Documentation

Get weather data from one station

Description

Get weather data from one station

Usage

riem_measures(
  station,
  date_start,
  ...,
  date_end = as.character(Sys.Date()),
  data = "all",
  elev = FALSE,
  latlon = FALSE,
  report_type = NULL
)

Arguments

station

station ID, see riem_stations()

date_start

date of start of the desired data, e.g. "2016-01-01"

...

These dots are for future extensions and must be empty.

date_end

date of end of the desired data, e.g. "2016-04-22". Default value is today. # nolint: line_length_linter

data

A vector of strings, representing the data columns to return. The available options are: all, tmpf, dwpf, relh, drct, sknt, p01i, alti, mslp, vsby, gust, skyc1, skyc2, skyc3, skyc4, skyl1, skyl2, skyl3, skyl4, wxcodes, ice_accretion_1hr, ice_accretion_3hr, ice_accretion_6hr, peak_wind_gust, peak_wind_drct, peak_wind_time, feel, metar, snowdepth # nolint: line_length_linter Default value is 'all'.

elev

If TRUE, the elevation (m) of the station will be included in the output, in an 'elevation' column. # nolint: line_length_linter Default value is 'FALSE'.

latlon

Default to 'FALSE' since riem 1.0.0. If 'TRUE', the latitude and longitude of the station will be included in the output, in 'lat' and 'lon' columns. # nolint: line_length_linter Default value is 'FALSE'.

report_type

A vector of strings, representing report types to query. The available options are '"hfmetar"', '"routine"', '"specials"'. Default value is 'c("routine", "specials")'.

Details

The data is queried through https://mesonet.agron.iastate.edu/request/download.phtml.# nolint: line_length_linter

Value

a data.frame (tibble tibble) with measures, the number of columns can vary from station to station, but possible variables are

Examples

## Not run: 
riem_measures(
  station = "VOHY",
  date_start = "2016-01-01",
  date_end = "2016-04-22"
)

## End(Not run)

[Package riem version 1.0.0 Index]