CompressionΒΆ
If the package enstools-compression is installed, the I/O enstools-io functions provided by enstools can use lossless and lossy compression.
Check more details about the package in:
For lossless compression it relies on BLOSC and for lossy compression it relies on ZFP and SZ.
Some examples .. code:
with read("input.nc") as dataset:
...
# Lossless compression with the default parameters
write(dataset, "output.nc", compression="lossless")
...
# Lossy compression using SZ with the absolute threshold of 0.001
write(dataset, "output.nc", compression="lossy,sz,abs,0.001")
# Lossy compression using ZFP with the absolute threshold of 0.001
write(dataset, "output.nc", compression="lossy,zfp,accuracy,0.001")
For more details about the compression please visit the corresponding documentation.