Next: zVariables
Up: 1.5.1 Variables
Previous: 1.5.1 Variables
rVariables all have the same dimensionality (number of dimensions and
dimension sizes).
An example of the type of data set that may
be stored in a CDF's rVariables is shown in
Table 1.1. Each record holds one value for each of the four
variables: Time, Longitude, Latitude, and Temperature.
CDF can store scalar data in a ``flat'' (0-dimensional) representation such
as this, but storage in
this manner may hide fundamental relationships among the data values.
Consistent repetitions found in the data for this example suggest
another way to organize the data set. Note that every fourth record is an
observation at the same point on Earth at different times.
That fact is not immediately clear from this representation
of the data. Looking more closely, we note that only two differing
values are recorded for Longitude and, similarly, only two differing
values are recorded for Latitude. This repetition suggests a
2-dimensional array structure whose dimensions are defined by
Longitude and Latitude. For each of the two Longitude values
there are two Latitude values. Time repeats for
each Longitude/Latitude pair -- the observations
were taken simultaneously at the longitude/latitude locations.
Because of Time's repetition for
Longitude/Latitude pairs, the number of Time
values specifies the number of records needed in the CDF.
Each record conceptually contains a 2-dimensional array per
rVariable (Table 1.2). The array structure
defines the dimensionality of the rVariables in the CDF.
Although there are four rVariables, the array dimensions and the sizes
of those dimensions are determined only by Longitude and
Next: zVariables
Up: 1.5.1 Variables
Previous: 1.5.1 Variables
cdfsupport@nssdca.gsfc.nasa.gov