2012 Unidata NetCDF Workshop > NetCDF-4 Programming
16.2 How to Upgrade netCDF-3 code to netCDF-4
Adapting netCDF-3 reading code to netCDF-4 is straightforward
For netCDF-3 programs that read but don't write netCDF data:
- Install latest netCDF release
- No code changes to netCDF-3 programs are required
- Recompile and link to netCDF-4 library
- Compression, chunking, and other performance features are
handled transparently
- Compressed data are uncompressed in chunks as they are read
2012 Unidata NetCDF Workshop > NetCDF-4 Programming