Skip to contents

R client package for the Finnish Meteorological Institute (FMI) open data API. fmi2 provides access to a subset of the FMI download service. FMI maintains and is reponsible for the data available through their API, but has no official connections to fmi2.

All data from the FMI is released under the Creative Commons Attribution 4.0 International license.

Installation

fmi2 is not yet on CRAN, but you can install the development version from GitHub with:

# install.packages("remotes")
remotes::install_github("rOpenGov/fmi2")

Details

Currently, the following FMI stored queries are avaible in fmi2:

Stored query Description No. parameters fmi2 function name
fmi::ef::stations Environmental Monitoring Stations 4 fmi_stations
fmi::observations::weather::daily::simple Daily Weather Observations 11 obs_weather_daily
fmi::observations::weather::hourly::simple Hourly Weather Observations 12 obs_weather_hourly

More data sets and queries may be wrapped in the future.

Example

For usage examples, see the package function reference and the following vignettes:

Contributing

If you have a particular need in mind, you’re free to:

  1. Fork the repository, modify the code and leave a pull request.
  2. Leave an issue with a description on the improvements.

Why fmi2?

If this is fmi2, where’s the first fmi!? Good question, fmi can be found here and is no longer developed or maintained. fmi was developed back in the day when accessing data from a WFS in R was much more difficult. Hence, the package is much more complicated than fmi2 and too laborious to maintain.