h5repack(1)
π h5repack π
okay bestie, welcome to h5repack(1), a page from the General Commands Manual, and honestly? she's iconic. let's get into it π«Ά
β¨ NAME β¨
h5repack β copy an HDF5 file to a new file, with or without compression/chunking π
π¦ SYNOPSIS π¦
h5repack -i file1 -o file2 [-h] [-v] [-f Β΄filterΒ΄] [-l Β΄layoutΒ΄] [-m number] [-e file]
π DESCRIPTION π
h5repack is a command line tool that takes HDF5 filters and applies them to an input file file1, then saves the whole glow-up into a brand-new file, file2. new file, new you, periodt β¨
filter is a string, and the format is literally:
<list of objects> : <name of filter> = <filter parameters>
<list of objects> is a comma separated list of object names, meaning apply compression only to those objects. if you don't name any objects, the filter gets applied to all of them. no cap.
<name of filter> can be:
GZIP, to apply the HDF5 GZIP filter (GZIP compression)SZIP, to apply the HDF5 SZIP filter (SZIP compression)SHUF, to apply the HDF5 shuffle filterFLET, to apply the HDF5 checksum filterNONE, to remove the filter
<filter parameters> is where the optional compression info lives:
SHUF(no parameter)FLET(no parameter)GZIP=<deflation level>from 1-9SZIP=<pixels per block,coding>(pixels per block is a even number in 2-32 and coding method is 'EC' or 'NN')
layout is a string too, and her format is:
<list of objects> : <layout type>
<list of objects> is a comma separated list of object names, meaning that layout information is supplied for those objects. if you name zero objects, the layout gets applied to all of them. same energy fr fr.
<layout type> can be:
CHUNK, to apply chunking layoutCOMPA, to apply compact layoutCONTI, to apply continuous layout
<layout parameters> shows up for the chunk case only, and it's the chunk size of each dimension: <dim_1 x dim_2 x ... dim_n> π
π OPTIONS π
file1,file2β the input and output HDF5 files, your before and your after π¦-hβ print a help message-ffilterβ filter type-llayoutβ layout type-vβ verbose mode. prints output (list of objects in the file, filters and layout applied). she's chatty and we love that π¬-efileβ file with the-fand-loptions (only filter and layout flags)-ddeltaβ print only differences that are greater than the limitdelta.deltamust be a positive number. the comparison criterion is whether the absolute value of the difference of two corresponding values is greater thandelta(e.g.,|a-b| > delta, whereais a value infile1andbis a value infile2).-mnumberβ do not apply the filter to objects which size in bytes is smaller thannumber. if no size is specified a minimum of1024bytes is assumed.
bestie reminder: that-ddeltahas to be a positive number, okay? don't try to be cute with it π
π EXAMPLES π
apply GZIP compression to all objects in file1 and save the output in file2:
h5repack -i file1 -o file2 -f GZIP=1 -v
apply SZIP compression only to object dset1:
h5repack -i file1 -o file2 -f dset1:SZIP=8,NN -v
apply a chunked layout to objects dset1 and dset2:
h5repack -i file1 -o file2 -l dset1,dset2:CHUNK=20x10 -v
π SEE ALSO π
h5dump(1), h5ls(1), h5diff(1), h5import(1), gif2h5(1), h52gif(1), h5perf(1), h5repart(1).
go read those too, they're the rest of the friend group π
and that's the whole page, bestie!! this was h5repack(1) from the General Commands Manual β no extra version or date tea on this one, she's just out here being h5repack(1), timeless, main character energy π
π¦ where this page comes from
- debian bookworm: hdf5-tools 1.10.8+repack1-1 Β· BSD-3-Clause
- debian trixie: hdf5-tools 1.14.5+repack-3 Β· BSD-3-Clause
- epel 10: hdf5 1.14.5-1.el10_0 Β· BSD-3-Clause
- epel 9: hdf5 1.12.1-7.el9.1 Β· BSD
- fedora 43: hdf5 1.14.6-6.fc43 Β· BSD-3-Clause
- fedora 43: hdf5 1.14.6-6.fc43 Β· BSD-3-Clause
- fedora 44: hdf5 1.14.6-7.fc44 Β· BSD-3-Clause
- fedora 44: hdf5 1.14.6-7.fc44 Β· BSD-3-Clause
- ubuntu jammy: hdf5-tools 1.10.7+repack-4ubuntu2 Β· BSD-3-Clause
- ubuntu noble: hdf5-tools 1.10.10+repack-3.1ubuntu4 Β· BSD-3-Clause
- ubuntu questing: hdf5-tools 1.14.5+repack-3build1
- ubuntu resolute: hdf5-tools 1.14.6+repack-2 Β· BSD-3-Clause
- ubuntu stonking: hdf5-tools 2.2.0+repack-5 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms