fmi_radiation | R Documentation |
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!
fmi_radiation(
start,
end = start,
station_id = "101004",
params = "dir_1min,diff_1min",
simplify_names = TRUE,
verbose = FALSE,
fmi_apikey = NA_character_
)
start |
Start time as a POSIXt-object obtained with e.g. lubridate::as_datetime(). |
end |
End time as a POSIXt-object. Defaults to |
station_id |
The station id. Defaults to |
params |
Query parameters, a comma separated string, such as
|
simplify_names |
If |
verbose |
If |
fmi_apikey |
An optional fmi-apikey. See http://en.ilmatieteenlaitos.fi/open-data-manual. |
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)
A tibble with time in the first
column and the variables specified in params
in the other columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.