We'll look at psuedo-code for programs that write and read netCDF data.
Following that, we'll look at a few working examples.
NetCDF Examples for C, Java, F90, F77, and C++
Equivalent example programs are available for C, Java, F90, F77, and C++ APIs.
Creating a NetCDF Dataset
Abstract code for creating a netCDF dataset.
Reading a NetCDF Dataset with Known Names
Abstract code for reading a netCDF dataset of known structure.
Reading a NetCDF Dataset with Unknown Names
Abstract code for reading a "classic" netCDF dataset of unknown structure.
Some Common Errors to Avoid
Some common errors in using C and Fortran netCDF APIs
The Simple XY Write Example in C
A C example program that writes the simple_xy.nc example dataset.
Write The Simple XY Example in F90
A Fortran 90 program that writes the simple_xy.nc example dataset.
The Simple XY Example in C++
(Legacy version) C++ code that writes the simple_xy.nc example dataset.
C API Example
C API example for reading data.
The NetCDF Example Data Sets
Examples that are part of the distribution produce some simple example datasets.
The Simple XY Example Dataset
The example dataset written and read by the simple_xy example programs.
The 2D Example Dataset CDL
The example dataset written and read by the sfc_pres_temp example programs.
The 4D Example Dataset CDL
The example dataset written and read by the pres_temp_4D example programs.