h5repack (1) - Linux Manuals
h5repack: Copy an HDF5 file to a new file with or without compression/chunking
NAME
h5repack - Copy an HDF5 file to a new file with or without compression/chunkingSYNOPSIS
h5repack -i file1 -o file2 [-h] [-v] [-f 'filter'] [-l 'layout'] [-m number] [-e file]DESCRIPTION
h5repack is a command line tool that applies HDF5 filters to a input file file1, saving the output in a new file, file2.
'filter'
is a string with the format
<list of objects> is a comma separated list of object names meaning apply compression only to those objects. If no object names are specified, the filter is applied to all objects.
<name of filter>
can be:
<filter parameters>
contains the optional compression information:
'layout' is a string with the format
<list of objects> is a comma separated list of object names, meaning that layout information is supplied for those objects. If no object names are specified, the layout is applied to all objects.
<layout type>
can be:
<layout parameters> is present for the chunk case only it is the chunk size of each dimension: <dim_1 x dim_2 x ... dim_n>
OPTIONS
- file1,file2
- The input and output HDF5 files
- -h
- Print a help message
- -f filter
- Filter type
- -l layout
- Layout type
- -v
- Verbose mode. Print output (list of objects in the file, filters and layout applied).
- -e file
- File with the -f and -l options (only filter and layout flags)
- -d delta
- Print only differences that are greater than the limit delta. delta must be a positive number. The comparison criterion is whether the absolute value of the difference of two corresponding values is greater than delta (e.g., |a-b| > delta, where a is a value in file1 and b is a value in file2).
- -m number
- Do not apply the filter to objects which size in bytes is smaller than number. If no size is specified a minimum of 1024 bytes is assumed.
EXAMPLES
Apply GZIP compression to all objects in file1 and save the output in file2:
Apply SZIP compression only to object 'dset1':
Apply a chunked layout to objects 'dset1' and 'dset2':