Previous: Some Common Errors to Avoid Next: The NetCDF Examples in C/F77/F90/C++ Table of contents Frames User guide
2008 Unidata NetCDF Workshop for Developers and Data Providers

6 NetCDF Example Programs
Equivalent example programs in C, C++, F77, F90, Java, Python, MATLAB, Perl, and, IDL have been written to demonstrate features of the netCDF APIs.

6.0  The NetCDF Examples in C/F77/F90/C++
Example programs are provided in C/F77/F90/C++ and come with the netCDF C-based release.
6.1  The NetCDF Example Requirements
The requirements for netCDF examples.
6.2  The NetCDF Example Data Sets
The example datasets are produced by the example programs.
6.3  The Simple XY Example Dataset
The example dataset written and read by the simple_xy example programs.
6.4  Write The Simple XY Example in F90
A Fortran 90 program that writes the simple_xy.nc example dataset.
6.5  The Simple XY Write Example in C
A C example program that writes the simple_xy.nc example dataset.
6.6  The Simple XY Example in C++
C++ code that writes the simple_xy.nc example dataset.
6.7  Creating a NetCDF Dataset
Abstract code for creating a netCDF dataset.
6.8  Read The Simple XY Example in F90
A Fortran 90 program that reads the simple_xy.nc example dataset.
6.9  The 2D Example Dataset CDL
The example dataset written and read by the sfc_pres_temp example programs.
6.10  The 4D Example Dataset CDL
The example dataset written and read by the pres_temp_4D example programs.
6.11  Reading The 4D Example in C
The C code that reads the pres_temp_4D.nc example dataset, one record at a time.
6.12  Reading a NetCDF Dataset with Known Names
Abstract code for reading a netCDF dataset of known structure.
6.13  Reading a NetCDF Dataset with Unknown Names
Abstract code for reading a netCDF dataset of known structure.
6.14  Issues in Writing Generic NetCDF Software
There are several issues to be aware of in writing software designed to read arbitrary netCDF data.

 


Previous: Some Common Errors to Avoid Next: The NetCDF Examples in C/F77/F90/C++ Table of contents Frames User guide
2008 Unidata NetCDF Workshop for Developers and Data Providers