next up previous contents
Next: 2.3.12 Majority Up: 2.3 Variables Previous: 2.3.10 Record Variance

2.3.11 Dimension Variance

     

A variable's dimension variances specify whether or not the values change along the corresponding dimension. The effects of a dimension variance are defined as follows:

Figure 2.2 illustrates   the effect of dimension variances on a variable with 2-dimensional arrays (for a particular record). For variable 1 each value in the array is physically stored and therefore unique. Because variable 2 does not vary along the second dimension, each value along that dimension is the same so only one value for that dimension is physically stored (the other values are virtual). The same is true for variable 3 which does not vary along the first dimension. Variable 4 does not vary along either dimension. Only one value is physically stored for the array --- all of the other values are the same (they are virtual).

  
Figure 2.2: Physical vs. Virtual Dimensions

A variable's dimension variances are specified   when the variable is created. The dimension variances of an existing variable may be changed   only if values have not yet been written to that variable. (An explicit pad value may have been specified, however.)



cdfsupport@nssdca.gsfc.nasa.gov