-
Notifications
You must be signed in to change notification settings - Fork 31
J. Tian edited this page Oct 17, 2022
·
1 revision
Type cusz or cusz -h for instant instructions.
<...> for the required; [...] for the optional printout
# compression (-z)
cusz -t <type> -m <mode> -e <error bound> -i <file> -l <N-D size> -z [--report time]
# decompression (-x)
cusz -i <.cusza file> -x [--compare <original file>] [--report time]export PATH=$(pwd)/bin:$PATH ## specify the path temporarily
cd data && sh ./sh.get-sample-data ## download sample data
CESM=$(pwd)/cesm-CLDHGH-3600x1800 EB=1e-4
cusz -t f32 -m r2r -e ${EB} -i ${CESM} -l 3600x1800 -z --report time
cusz -i ${CESM}.cusza -x --compare ${CESM} --report timeThe following essential arguments are required,
-
-zto compress;-xto decompress. -
-mto specify error control mode fromabs(absolute) andr2r(relative to value range) -
-eto specify error bound -
-ito specify input file -
-l <size>to specify dimensions
For evaluating purpose, we can skip writing to disk in decompression with --skip write2disk.
mkdir data2 data3
# output compressed data to `data2`
cusz -t f32 -m r2r -e 1e-4 -i ./data/cesm-CLDHGH-3600x1800 -l 3600x1800 -z --opath data2
# output decompressed data to `data3`
cusz -i ./data2/cesm-CLDHGH-3600x1800.cusza -x --opath data3The actual compression or decompression is skipped; use -r or --dry-run in the command line.
# This works equivalently to decompress with `--origin /path/to/origin-datum`
cusz -t f32 -m r2r -e 1e-4 -i ./data/cesm-CLDHGH-3600x1800 -l 3600x1800 -r(C) 2022 by Indiana University and Argonne National Laboratory. See COPYRIGHT.
- developers: Jiannan Tian, Cody Rivera, Wenyu Gai, Dingwen Tao, Sheng Di, Franck Cappello
- contributors (alphabetic): Jon Calhoun, Megan Hickman Fulp, Xin Liang, Robert Underwood, Kai Zhao
- Special thanks to Dominique LaSalle (NVIDIA) for serving as Mentor in Argonne GPU Hackaton 2021!