smhi_opendata_translate_oldElementCodes: translate oldElementCodes into smhi_opendata API standards

smhi_opendata_translate_oldElementCodesR Documentation

translate oldElementCodes into smhi_opendata API standards

Description

Translate frost_oldElementCodes into smhi_opendata API standards https://opendata-download-metobs.smhi.se/. Reference for frost_oldElementCodes is https://frost.met.no/elementtable.

Usage

smhi_opendata_translate_oldElementCodes<-function(oldElementCodes=NULL)

Arguments

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.

Details

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).

Value

A numeric vector with the same number of rows as the number of elements in oldElementCodes.

Author(s)

Cristian Lussana

See Also

gibson_frost frost_assembler

Examples


# load libraries
library(gibson)
#
out<-smhi_opendata_translate_oldElementCodes(c("TA","RR_1","TAMRR"))
out


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