NetCDF4 Files at PSD

We have decided at PSD to switch our file format from netCDF3 to netCDF4 wherever possible. New datasets will be created in netCDF4 and we will be converting older files to netCDF4. NetCDF4 has the advantage that files may read faster (much faster sometimes) in some applications (e.g. NCL). It also has the advantage that we will not need to pack the data using a scale and offset and users will not need to unpack data. NetCDF4 provides compression that is comparable to the use of short integers (~50% for most files). The compression they use is lossless, also an advantage.

Most applications should be able to read netCDF4. You may need to change your code if you explicitly unpack the data. NCL's short2flt routine will not need to be changed if you use that. In some cases, users have had issues if their application wasn't compiled with HDF libraries correctly. We do NOT support any netCDF application ourselves. Please contact the individual application support directly and/or read Unidata's netCDF webpage. Unidata has a program called nccopy that will convert NetCDF 4 files to NetCDF 3. If you are not able to get an application to work, you may find that useful though it will likely increase the size of the file by 100%. You may contact us if all the above doesn't help.

To determine a file type:
ncdump -k
To convert a netCDF4 file to netCDF3:
nccopy -k 3