NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

Data compression


I think compression is better left to external programs for the most part.
Could you modify ncopen() and ncclose() to automatically uncompress and
compress files? For instance, suppose you execute:

        ncopen("foo.cdf", NC_WRITE);

and foo.cdf doesn't exist but foo.cdf.Z does. Would it be difficult to have
it pipe foo.cdf.Z through "uncompress -c" before presenting it to the user?
Oops, maybe this won't work, since netcdf doesn't deal well with pipes.
Hmmm...

Skip (montanaro@xxxxxxxxxx)