fmir provides simple tools for easily accessing up to date, open weather data from Finland. The data are made available by the Finnish Meteorological Institute and are licensed under CC-BY 4.0. See FMI’s open data manual for details.

Key features in fmir include:

  • Use simple R syntax to create queries for the FMI API
  • Flexibly download XML weather data from the API
  • Parse the XML response into a regular data frame

FMI provides varying types of data in several different formats in their API, implemented using OGC Web Feature Service (WFS). Currently the only format supported by fmir is the “simple” weather format. For a more comprehensive and feature-rich package for accessing the FMI API, check out https://github.com/rOpenGov/fmi.

Installation

At the moment, the easiest way to install fmir is from github with devtools:

In the wild

For a real use-case, check out Pasi Haapakorva’s blog post (in Finnish) looking at the trend in monthly average temperatures in Oulu in 1955–2018. Spoiler alert: it’s been getting warmer.