hrepack - copies an HDF file to a new file
Contents
Description
hrepack copies an HDF file to a new file with/without compression and/or chunking.
Examples
compresses all objects in the file file1.hdf, using RLE compression
hrepack-v-ifile1.hdf-ofile2.hdf-t '*:RLE'
applies Skipping Huffman compression with skip factor of 1, for objects /group1/A, /group2/B and C
hrepack-v-ifile1.hdf-ofile2.hdf-t '/group1/A,/group2/B,C:HUFF 1'
applies RLE compression for object /group1/D.
applies chunking to objects D and E using a chunk size of 10 for the 2 dimensions
hrepack-v-ifile1.hdf-ofile2.hdf-t '/group1/D:RLE' -c 'D,E:10x10'
uncompresses object A
hrepack-v-ifile1.hdf-ofile2.hdf-t 'A:NONE'
applies SZIP compression to object A, with parameters 8 and NN
hrepack-v-ifile1.hdf-ofile2.hdf-t 'A:SZIP 8,NN'
Note: the use of the verbose option -v is recommended
28 May 2016 hrepack(1)
Name
hrepack - copies an HDF file to a new file
Options
-iinput
input HDF File
-ooutput
output HDF File
-V prints version of the HDF4 library and exits
-h prints usage information
-v verbose mode
-tcomp_info
compression type: 'comp_info' is a string with the format <object list>:<type of compression><pa‐
rameters>
<object list> is a comma separated list of object names meaning apply compression only to those
objects. '*' means all objects.
<type of compression> can be:
RLE
for RLE compression
HUFF
for Huffman
GZIP
for gzip
JPEG
for JPEG (for images only)
SZIP
for szip
NONE
to uncompress
<parameters> is optional compression info
RLE
no parameter
HUFF
the skip-size
GZIP
the deflation level
JPEG
the quality factor
SZIP
pixels per block, compression mode (NN or EC)
-cchunk_info
apply chunking. chunk_info is a string with the format <object list>:<chunk information>
<object list> is a comma separated list of object names meaning apply chunking only to those ob‐
jects. '*' means all objects
<chunk information> is the chunk size of each dimension: dim_1xdim_2x...dim_n or NONE, to
unchunk a previous chunked object
-fcfile
file with compression information -t and -c-msize
do not compress objects smaller than size (bytes)
Synopsis
hrepack-iinput-ooutput [-V] [-h] [-v] [-tcomp_info] [-cchunk_info] [-fcfile] [-msize]
