fmi_getURL: FMI API url to download data

View source: R/fmi_getURL.R

fmi_getURLR Documentation

FMI API url to download data

Description

Build up the FMI API url that will be used to download data from gibson_fmi_opendata. Linked to the FMI API (data.fmi.fi).

Usage

fmi_getURL(apiKey=NULL,
           abbrv=NULL, #"minute" "day"
           starttime=NULL,
           endtime=NULL,
           format="%Y-%m-%dT%H:%M",
           parameters=NULL,
           bbox=c(19.09,59.3,31.59,70.13)) 

Arguments

apiKey

API-key that can be gotten via registration https://ilmatieteenlaitos.fi/rekisteroityminen-avoimen-datan-kayttajaksi

abbrv

character string. It can be either 'minute' or 'day'.

starttime

character string with the time stamp of the first observation

endtime

character string with the time stamp of the last observation

format

charater string specifying the date-time format of start_date and stop_date (see strptime help page)

parameters

charater vector specifying the FMI API parameters. Allowed values for hourly variables are: 'r_1h', 't2m', 'ws_10min', 'p_sea', 'wd_10min', 'wg_10min', 'rh'. Allowed values for daily variables are: 'rrday', 'tday', 'tmin', 'tmax'.

bbox

numeric vector of the form c(long_min,long_max,lan_min,lan_max) that identifies a rectangle used to select the data sources. The lower left corner is (long_min,lan_min) the upper right corner is (long_max,lat_max).

Details

List of stored queries: http://data.fmi.fi/fmi-apikey/insert-your-apikey-here/wfs?request=listStoredQueries or for more details http://data.fmi.fi/fmi-apikey/insert-your-apikey-here/wfs?request=describeStoredQueries. The used queries are (i) abbrv='minute' that is linked to the query 'fmi::observations::weather::multipointcoverage' (ii) abbrv='day' linked to 'fmi::observations::weather::daily::multipointcoverage'

Value

A character string with the url.

Note

FMI open data licence http://en.ilmatieteenlaitos.fi/open-data-licence.

Author(s)

Cristian Lussana

See Also

fmi_opendata_assembler

Examples


# load libraries
library(gibson)
#
apiKey<-put_your_apiKey_here

metno/gibson documentation built on Feb. 12, 2024, 7:25 a.m.