HDF_DFSD_DIMSET

The HDF_DFSD_DIMSET procedure sets the label, unit, format, or scale of dimensions in a Hierarchical Data Format file. Note that the label, unit, and format of a dataset must be set simultaneously.

Calling Sequence

HDF_DFSD_DIMSET, Dimension

Arguments

Dimension

The dimension number that the label, unit, format or scale apply to.

Keywords

FORMAT

A string for the dimension format. This string should be a standard IDL formatting string.

LABEL

A string for the dimension label.

SCALE

A vector of values used to set the dimension scale.

UNIT

A string for the dimension units.

Example

Suppose that a stored dataset is a 20 by 100 by 50 element floating-point array of values representing water content within the volume of a cloud. Assume further that each element in the 100-element dimension (the "Y" dimension) was sampled at 1/10 mile increments. Appropriate labeling, formatting, unit, and scaling information for the Y dimension can be set with the following command:

HDF_DFSD_DIMSET, 1, LABEL = 'Y Position', FORMAT = 'F8.2', $

             UNIT = 'Miles', SCALE = 0.1*FINDGEN(100)