The HDF_DFP_WRITEREF procedure sets the reference number for the next palette to be written to a Hierarchical Data Format file. Normally, the HDF library automatically chooses a reference number for the palette. This procedure allows you to override that choice.