getGridUnits: Get grid units

View source: R/helpers.R

getGridUnitsR Documentation

Get grid units

Description

Get the "units" attribute of a grid

Usage

getGridUnits(grid, var = NULL)

Arguments

grid

An input grid

var

Character vector of variable length. Variable short name(s) whose units are returned. Only makes sense in the case of multigrids storing several variables. Otherwise ignored.

Value

Returns the "units" attribute

Author(s)

J Bedia

See Also

Other get.helpers unit.helpers: setGridUnits()

Examples

 
require(climate4R.datasets)
data(NCEP_Iberia_ta850)
getGridUnits(NCEP_Iberia_ta850)
data(NCEP_Iberia_hus850)
getGridUnits(NCEP_Iberia_hus850)
data(NCEP_Iberia_psl)
getGridUnits(NCEP_Iberia_psl)
mf <- makeMultiGrid(NCEP_Iberia_hus850, NCEP_Iberia_psl, NCEP_Iberia_ta850)
getGridUnits(mf)
getVarNames(mf)
getGridUnits(mf, "hus@850")
getGridUnits(mf, var = c("hus@850", "ta@850"))


SantanderMetGroup/transformeR documentation built on Oct. 28, 2023, 5:26 a.m.