[Top] [Prev] [Next]

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

15.11.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.11.2 Command-Line Syntax

paltohdf raw-format-palette-filename HDF-format-palette-filename
If a HDF palette format file is specified that doesn't 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 - 07/21/98, NCSA HDF Development Group.