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.
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: