addGRID

Adds a single-valued independent variable

var ivar addGRID

Arguments
labeltypedescription
var variable Variable to be manipulated
ivar grid Independent variable to be applied to variable
Returns
var' variable Variable with single-valued independent variable added

Description

addGRID attaches a new single-valued grid (independent variable) to the latest variable on the stack.

Example

SOURCES .UEA .CRU .Jones .CRUTEM3 .tanom
/Z /meters ordered [2] NewGRID
addGRID


This example creates and adds a new, single-valued height (Z) grid to the CRUTEM3 land-only surface temperature anomaly data set. "/Z /meters ordered [2] NewGRID" creates a new grid called "Z", with units in meters, that is ordered, and has a single value of 2. addGRID then attaches this grid to the temperature anomaly data set.

Live Link Example