Writes an 8 bit image to an HDF file.
image A byte array containing the 8 bit image to write to the file.
Compression Defines the compression scheme to use when writing the image. Possible values are:
DFTAG_RLE Run length encoding (RLE)
DFTAG_IMCOMP IMCOMP compression
Help If present and nonzero, lists the usage for this routine.
Palette A byte array containing an HDF palette to write with the image. This palette is pixel interlaced (r, g, b, r, g, b, ...) and cannot be a standard PV-WAVE color table.
Usage If present and nonzero, lists the usage for this routine. (Same as the Help keyword.)
status = HDFPUTR8 (testfile, smallimage) IF (status EQ FAIL) THEN $ MESSAGE, 'HDFPUTR8 failed.' status = HDFPUTR8 (testfile, image, /Append) If (status EQ FAIL) THEN $ MESSAGE, 'HDFPUTR8 failed.'
Also refer to the following routines in the HDF Reference Manual:
For a complete list of the HDF convenience routines, refer to Chapter 1, Functional Summary of Routines.