fmi_getURL | R Documentation |
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).
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))
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 |
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). |
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'
A character string with the url.
FMI open data licence http://en.ilmatieteenlaitos.fi/open-data-licence.
Cristian Lussana
fmi_opendata_assembler
# load libraries
library(gibson)
#
apiKey<-put_your_apiKey_here
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.