OS Manuals

/usr/bin/zfp

zfp is a compressed format for representing multidimensional floating-point and integer arrays.

From zfp 1.0.1-r7 (os), captured 2026-11-05 by running zfp --help (exit 1). permalink

zfp version 1.0.1 (December 15, 2023)
Usage: zfp <options>
General options:
  -h : read/write array and compression parameters from/to compressed header
  -q : quiet mode; suppress output
  -s : print error statistics
Input and output:
  -i <path> : uncompressed binary input file ("-" for stdin)
  -o <path> : decompressed binary output file ("-" for stdout)
  -z <path> : compressed input (w/o -i) or output file ("-" for stdin/stdout)
Array type and dimensions (needed with -i):
  -f : single precision (float type)
  -d : double precision (double type)
  -t <i32|i64|f32|f64> : integer or floating scalar type
  -1 <nx> : dimensions for 1D array a[nx]
  -2 <nx> <ny> : dimensions for 2D array a[ny][nx]
  -3 <nx> <ny> <nz> : dimensions for 3D array a[nz][ny][nx]
  -4 <nx> <ny> <nz> <nw> : dimensions for 4D array a[nw][nz][ny][nx]
Compression parameters (needed with -i):
  -R : reversible (lossless) compression
  -r <rate> : fixed rate (# compressed bits per floating-point value)
  -p <precision> : fixed precision (# uncompressed bits per value)
  -a <tolerance> : fixed accuracy (absolute error tolerance)
  -c <minbits> <maxbits> <maxprec> <minexp> : advanced usage
      minbits : min # bits per 4^d values in d dimensions
      maxbits : max # bits per 4^d values in d dimensions (0 for unlimited)
      maxprec : max # bits of precision per value (0 for full)
      minexp : min bit plane # coded (-1074 for all bit planes)
Execution parameters:
  -x serial : serial compression (default)
  -x omp[=threads[,chunk_size]] : OpenMP parallel compression
  -x cuda : CUDA fixed rate parallel compression/decompression
Examples:
  -i file : read uncompressed file and compress to memory
  -z file : read compressed file and decompress to memory
  -i ifile -z zfile : read uncompressed ifile, write compressed zfile
  -z zfile -o ofile : read compressed zfile, write decompressed ofile
  -i ifile -o ofile : read ifile, compress, decompress, write ofile
  -i file -s : read uncompressed file, compress to memory, print stats
  -i - -o - -s : read stdin, compress, decompress, write stdout, print stats
  -f -3 100 100 100 -r 16 : 2x fixed-rate compression of 100x100x100 floats
  -d -1 1000000 -r 32 : 2x fixed-rate compression of 1M doubles
  -d -2 1000 1000 -p 32 : 32-bit precision compression of 1000x1000 doubles
  -d -1 1000000 -a 1e-9 : compression of 1M doubles with < 1e-9 max error
  -d -1 1000000 -c 64 64 0 -1074 : 4x fixed-rate compression of 1M doubles
  -x omp=16,256 : parallel compression with 16 threads, 256-block chunks

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.