grouptogrid

combines variables into a single variable

A /name1 ... n grouptogrid

Arguments
labeltypedescription
A dataset input dataset that variables are selected from
name name set name(s) of variables to be included in variable
Returns
AV variable concatenation of variables: there is an additional grid M whose values are the names of the variables


Description

grouptogrid groups data from a set of n dependent variables (name1, name2, ..., namen) from a data set in the Data Library as if they were all from one variable dependent upon a newly-created grid (M) with grid points named after the original dependent variables.

Example

In the following example, grouptogrid is applied to the monthly mean zonal (u) and meridional (v) wind variables (which originally depend upon pressure level (P), time (T), longitude (X), and latitude (Y) grids) from the NCEP-NCAR Reanalysis data set. The result is a single variable containing both the zonal and meridional wind data, but which is now indexed by the original P, T, X, and Y grids and, additionally, a new 2-point grid named "M" whose grid values are named "u" (to which the zonal wind values are assigned) and "v" (to which the meridional wind values are assigned).

SOURCES .NOAA .NCEP-NCAR .CDAS-1 .MONTHLY .Intrinsic .PressureLevel
{u v}grouptogrid


Live Example Link


See also

Independent Variable Creation: classify :cressman invertontogrid shiftdata shiftdatashort toS :weaver