 
  
   
    2012 Unidata NetCDF Workshop  > NetCDF-4 Programming
 
2012 Unidata NetCDF Workshop  > NetCDF-4 Programming  
 
16.3 How to Upgrade netCDF-3 code to netCDF-4
Adapting netCDF-3 code that writes data to netCDF-4 is also easy
For netCDF-3 programs that create netCDF files or write netCDF data:
  - Install latest netCDF release
- If you only want to write classic or 64-bit offset format files,
  no code changes are necessary
- To write netCDF-4 formats, change nc_create calls to include the
  appropriate "NC_NETCDF4" or "NC_NETCDF4 | NC_CLASSIC_MODEL" flag
- Optionally, add control of performance features, such as chunking
  and compression for netCDF-4 format files
- Recompile, relink, and run
- Only classic model is handled without extra code
 
 
 
  
   
    2012 Unidata NetCDF Workshop  > NetCDF-4 Programming
  
2012 Unidata NetCDF Workshop  > NetCDF-4 Programming