The dataset dsid is converted to a Dimension Scale dataset, as defined above. Creates the CLASS attribute, set to the value "DIMENSION_SCALE" and an empty REFERENCE_LIST attribute, as described in “HDF5 Dimension Scale Specification” (PDF, see section 4.2).
If dimname is specified, then an attribute called NAME is created, with the value dimname.
- Bad arguments
- If dsid is already a scale
- If dsid is a dataset which already has dimension scales
If the dataset was created with the Table, Image, or Palette interface , it is not recommended to convert to a Dimension Scale. (These Datasets will have a CLASS Table, Image, or Palette.)