getGridUnits | R Documentation |
Get the "units"
attribute of a grid
getGridUnits(grid, var = NULL)
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. |
Returns the "units"
attribute
J Bedia
Other get.helpers unit.helpers:
setGridUnits()
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"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.