C4R.vocabulary.update: Include new variables in the vocabulary

View source: R/vocabulary.R

C4R.vocabulary.updateR Documentation

Include new variables in the vocabulary

Description

Allows the introduction of new user defined entries in the default vocabulary

Usage

C4R.vocabulary.update(identifier, standard_name, units)

Arguments

identifier

A vector containing the identifier(s) of the new variable(s) to be appended to the dictionary.

standard_name

A vector containing the standard name(s) of the new variable(s) to be appended to the dictionary.

units

A vector containing the units of the new variable(s) to be appended to the dictionary.

Value

The built-in vocabulary is updated with the new entries appended at the end.

Author(s)

J Bedia

References

Standard name table of the CF convention: http://cfconventions.org/standard-names.html

See Also

C4R.vocabulary, to access the vocabulary contents

Examples

## Not run: 
# Inclusion of a new variable ("Total snowfall amount")
C4R.vocabulary.update(identifier = "prsn",
                      standard_name = "total snowfall amount",
                      units = "mm")
C4R.vocabulary()                 
# Inclusion of 2 new variables: 
C4R.vocabulary.update(identifier = c("wap", "plev"),
                      standard_name = c("lagrangian tendency of air pressure",
                                        "air pressure"),
                      units = c("Pa.s-1", "Pa"))
C4R.vocabulary() 

## End(Not run)

SantanderMetGroup/climate4R.UDG documentation built on June 28, 2023, 6:03 p.m.