[Top] [Prev] [Next]

15.12 Compressing RIS8 Images in an HDF File: hdfcomp

15.12.1 General Description

The hdfcomp utility reads RIS8 images from a set of HDF files, compresses them and stores the compressed data in a second HDF file. If the output HDF file exists, the compressed images will be appended to it.

15.12.2 Command-line Syntax

hdfcomp output-filename [-c|-r|-i] input-filename-1, [-c|-r|-i]input-filename-2, ... [-c|-r|-i] input-filename-n
The option flags are described in Table 15I

TABLE 15I
-r

No compression:

The raster image data is not compressed. (the default)

-c

Run-length Encoding:

The raster image data is compressed using run-length encoding.

-i

IMCOMP Compression:

The raster image data is compressed using the IMCOMP algorithm.

hdfcomp Option Flags

15.12.3 Examples

A directory contains twenty files named storm001, storm002, ... storm020. Each of these files contains a single RIS8 image. To compress these images using run-length encoding and store them in a file named altcomp.hdf, use the following hdfcomp command:

hdfcomp allcomp.hdf -c storm*.hdf


[Top] [Prev] [Next]

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