[Top] [Prev] [Next]

15.7 Converting Raw Palette Data to the HDF Palette Format: paltohdf

15.7.1 General Description

The paltohdf utility converts raw palette data to the HDF palette format. The raw palette data must have 768 bytes organized in the following order: first, 256 contiguous red intensity values, then 256 contiguous green intensity values, then 256 contiguous blue intensity values. The palette in the HDF file will have the RGB values pixel-interlaced, as follows.

red-value green-value blue-value red-value green-value blue-value ...
This is the standard HDF format for 8-bit palettes.

15.7.2 Command-line Syntax

paltohdf raw-format-palette-filename HDF-format-palette-filename
If an HDF palette format file is specified that does not exist, it is created before the converted data is stored. If an HDF palette format file is specified that already exists, the converted data is appended to the file.



[Top] [Prev] [Next]

hdfhelp@ncsa.uiuc.edu
HDF User's Guide - 05/19/99, NCSA HDF Development Group.