fmi_radiation: fmi_radiation

View source: R/fmi_download.R

fmi_radiationR Documentation

fmi_radiation

Description

Download radiation data from the fmi radiation API. If the request is larger than the api allows, it is split into multiple parts. If this results to more than 30 queries, a warning message is printed. Note, this might be for the first minute of the hour as it works currently, rather than some kind of averages!

Usage

fmi_radiation(
  start,
  end = start,
  station_id = "101004",
  params = "dir_1min,diff_1min",
  simplify_names = TRUE,
  verbose = FALSE,
  fmi_apikey = NA_character_
)

Arguments

start

Start time as a POSIXt-object obtained with e.g. lubridate::as_datetime().

end

End time as a POSIXt-object. Defaults to start.

station_id

The station id. Defaults to 101004. (Kumpula station). A list of the available stations can be downloaded with the get_stations()-function.

params

Query parameters, a comma separated string, such as "dir_1min,diff_1min". For more options, see Details.

simplify_names

If TRUE, variable names are simplified (eg. GLOB_1MIN is converted to global_radiation).

verbose

If TRUE, prints the progress. Defaults to FALSE.

fmi_apikey

An optional fmi-apikey. See http://en.ilmatieteenlaitos.fi/open-data-manual.

Details

The available variables are listed below, more information can be found from https://en.ilmatieteenlaitos.fi/open-data-manual.

The following variables are available:

  • lwin_1min: long-wave solar radiation (W/m2)

  • lwout_1min: outgoing long-wave solar radiation (W/m2)

  • glob_1min: global radiation (W/m2)

  • dir_1min: direct solar radiation (W/m2)

  • refl_1min: reflected radiation (W/m2)

  • sund_1min: sunshine duration (s)

  • diff_1min: diffuse radiation (W/m2)

  • net_1min: radiation balance (W/m2)

  • uvb_u: ultraviolet irradiance (index)

Value

A tibble with time in the first column and the variables specified in params in the other columns.


paasim/simplefmi documentation built on Aug. 4, 2023, 10:30 p.m.