'Is there any way to directly change Deflate-level of existing NetCdf files without rewriting?

The netcdf files from ERA5 are too large. I found the Deflate-level of original file is zero for all variables. Thus, is there any way to change the level to 5 or 9 directly without rewriting in MATLAB?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source