nameDim
Assigns given named dimensions, long_name, and units to the input variable.
Prototype
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl" function nameDim ( x , dimNames [*] : string, longName : string, units : string ) return_val [dimsizes(x)] : typeof(x)
Arguments
xArray to assign dimensions and attributes to.
dimNamesAn array of dimension names to assign to x. It must be the same length as the rank of x.
longNameA single string to assign to the "long_name" attribute.
unitsA single string to assign to the "units" attribute.
Return value
The input array x is returned with the attached dimensions and attributes.
Description
This function assigns the given named dimensions, long_name, and units to the input variable.