Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

hdftopal(1) [debian man page]

HDFTOPAL(1)						      General Commands Manual						       HDFTOPAL(1)

hdftopal, paltohdf - convert between a palette in an HDF file and a raw palett e in a non-HDF file SYNOPSIS
hdftopal hdf-pallette-file raw-pallette-file paltohdf raw-pallette-file hdf-pallette-file DESCRIPTION
hdftopal converts a palette in an HDF file to a raw palette in an non-HDF file. The raw palette will have 768 bytes with the first 256 bytes representing red intensity values, the second 256 bytes representing green intensity values, and the third 256 bytes representing blue intensity values. paltohdf performs the converse conversion, from raw palette data to the HDF palette format. The raw palette data must have 768 bytes orga- nized 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. If an 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. SEE ALSO
hdf(5) November 6, 1999 HDFTOPAL(1)

Check Out this Related Man Page

HDFTOR8(1)						      General Commands Manual							HDFTOR8(1)

hdftor8 - extract 8-Bit raster images and palettes from HDF file SYNOPSIS
hdftor8 hdf-file [-i] [-v] [-r raster-image-file] [-p pallette-file] DESCRIPTION
hdftor8 extracts the raster images and/or palettes from an HDF file and stores them in one file that contains the raster image data and an- other that contains the palette data. The names given for the raster image and palette files are interpreted by hdftor8 as follows: For each raster image file, the file name is given the extension ".#.@.%", where "#" represents the raster image number from the HDF file, "@" represents the x-dimension of the raster image, and "%" represents the y-dimension of the raster image. For each palette file, the file name is given the extensions ".#", where "#" represents the palette number from the HDF format file. If no name is given for the raster image file, the default name "img.#.@.%" is assigned, where "#", "@", and "%" are as defined in the pre- ceding paragraph. The default name for a palette file is "pal.#". OPTIONS
-i Execute the program in interactive mode. -v Execute in verbose mode. Display diagnostic messages during the session. -r raster-image-file Specify the name of the raster image file. -p pallette-file Specify the name of the palette file. EXAMPLES
A file named "denm.hdf" contains three 512 x 256 raster images and three palettes. To store these images and palettes in separate raster image and palette files, use the following hdftor8 command: hdftor8 denm.hdf Six files are created, named "img1.512.256", "img2.512.256", "img3.512.256", "pal.1", "pal.2", and "pal.3". SEE ALSO
r8tohdf(1), hdf(5) November 6, 1999 HDFTOR8(1)
Man Page

3 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

oops! Style Manager

Solaris 2.6, using CDE: agh. I accidentally set an ugly palette as my Home Session. The problem is, when I change the palette back to Default, I am informed that my change will be apparent in my next session. But when I log out and in, it's still the Ugly Palette. Doesn't matter if I set the... (1 Reply)
Discussion started by: kristy
1 Replies

2. Shell Programming and Scripting

Script for cygwin, HDF-EOS for converting HDF to TIF

I found a script from HDF-EOS for converting HDF to TIF, i did all steps but when i run there is some errors. Link of instructions: What I do rong about script? #! /bin/sh # in this script it is assumed that HEG... (6 Replies)
Discussion started by: vardaloupas
6 Replies

3. Shell Programming and Scripting

Calculation returns no value

#/bin/sh ..... #convert memory to MB let "mmsize_a= ($mmsize)/256" let "mminuse_a= ($mminuse)/256" let "mmfree_a= ($mmsize_a -$mminuse_a)" let "mmfreepercent= (($mmfree_a)/($mmsize_a))*100" # #format output echo "\n\n######################" >>$sndFile echo "\n$sysName Total Memory usage"... (3 Replies)
Discussion started by: Daniel Gate
3 Replies

Featured Tech Videos