Previous: Other APIs for netCDF Next: NetCDF Examples for C, Java, F90, F77, and C++ Table of contents Frames 2012 Unidata NetCDF Workshop

11 Using netCDF in programs
Accessing netCDF data from programs

We'll look at psuedo-code for programs that write and read netCDF data.

Following that, we'll look at a few working examples.

11.0  NetCDF Examples for C, Java, F90, F77, and C++
Equivalent example programs are available for C, Java, F90, F77, and C++ APIs.
11.1  Creating a NetCDF Dataset
Abstract code for creating a netCDF dataset.
11.2  Reading a NetCDF Dataset with Known Names
Abstract code for reading a netCDF dataset of known structure.
11.3  Reading a NetCDF Dataset with Unknown Names
Abstract code for reading a "classic" netCDF dataset of unknown structure.
11.4  Some Common Errors to Avoid
Some common errors in using C and Fortran netCDF APIs
11.5  The Simple XY Write Example in C
A C example program that writes the simple_xy.nc example dataset.
11.6  Write The Simple XY Example in F90
A Fortran 90 program that writes the simple_xy.nc example dataset.
11.7  The Simple XY Example in C++
(Legacy version) C++ code that writes the simple_xy.nc example dataset.
11.8  C API Example
C API example for reading data.
11.9  The NetCDF Example Data Sets
Examples that are part of the distribution produce some simple example datasets.
11.10  The Simple XY Example Dataset
The example dataset written and read by the simple_xy example programs.
11.11  The 2D Example Dataset CDL
The example dataset written and read by the sfc_pres_temp example programs.
11.12  The 4D Example Dataset CDL
The example dataset written and read by the pres_temp_4D example programs.

 


Previous: Other APIs for netCDF Next: NetCDF Examples for C, Java, F90, F77, and C++ Table of contents Frames 2012 Unidata NetCDF Workshop