Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Compressed netCDF library available

NetCDF is a great, portable data format but the resulting files are _not_
small.  This has lead many groups to try different ways to reduce the file
size that complicates netCDFs simple data access methods (scale and
offsets, data masks).

Others just gzip up the data files and uncompress them when necessary. This
usually yeilds a 70-90% reduction in file size but makes makes access 
cumbersome, especially if you are reading large files off cdroms.

It would be nice to access these compressed files directly.

I have written a set of modifications to the netCDF library source that 
allow exactly that.

This makes a drop in replacement that will allow transparent access to
both compressed and uncompressed netCDF files.  You just have to relink
against the znetcdf library.  Creating compressed netCDF files requires
a small change to the flags in the nccreate routine.

There is a page with a more complete explanation, the source changes,
instructions on how to patch the netcdf-3.3.1 source, and some perfomance
numbers:

http://snow.cit.cornell.edu/noon/z_netcdf.html

This has been used on the following platforms with not problems:
dUNIX, MacOS, linux, IRIX, Solaris, AIX, openstep, Rhapsody.

If folks want, and contribute, I will collect precompiled libraries on
this link as well.

Try it out and send me your comments.

--Bill Noon
Northeast Regional Climate Center
Cornell University

 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690