smhi_opendata_translate_oldElementCodes | R Documentation |
Translate frost_oldElementCodes
into smhi_opendata API standards https://opendata-download-metobs.smhi.se/.
Reference for frost_oldElementCodes is https://frost.met.no/elementtable.
smhi_opendata_translate_oldElementCodes<-function(oldElementCodes=NULL)
oldElementCodes |
character vector with the abbreviations used to define weather and climate elements (before Frost-era). The abbreviations are listed at https://frost.met.no/elementtable. |
In case an abbreviations is not yet implemented in gibson
then the parameterId
character string is set to NA
.
The SMHI API parameterId
specifies the meteorological or climate element and the post-processing action by means of a numerical code (see https://opendata-download-metobs.smhi.se/api/version/1.0.json).
A numeric vector with the same number of rows as the number of elements in oldElementCodes
.
Cristian Lussana
gibson_frost
frost_assembler
# load libraries
library(gibson)
#
out<-smhi_opendata_translate_oldElementCodes(c("TA","RR_1","TAMRR"))
out
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.