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

11 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.

11.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.
11.1  The NetCDF Example Requirements
The requirements for netCDF examples.
11.2  The NetCDF Example Data Sets
The example datasets are produced by the example programs.
11.3  The Simple XY Example Dataset
The example dataset written and read by the simple_xy example programs.
11.4  Write The Simple XY Example in F90
A Fortran 90 program that writes the simple_xy.nc example dataset.
11.5  The Simple XY Write Example in C
A C example program that writes the simple_xy.nc example dataset.
11.6  The Simple XY Example in C++
C++ code that writes the simple_xy.nc example dataset.
11.7  Creating a NetCDF Dataset
Abstract code for creating a netCDF dataset.
11.8  Read The Simple XY Example in F90
A Fortran 90 program that reads the simple_xy.nc example dataset.
11.9  The 2D Example Dataset CDL
The example dataset written and read by the sfc_pres_temp example programs.
11.10  The 4D Example Dataset CDL
The example dataset written and read by the pres_temp_4D example programs.
11.11  Reading The 4D Example in C
The C code that reads the pres_temp_4D.nc example dataset, one record at a time.
11.12  Reading a NetCDF Dataset with Known Names
Abstract code for reading a netCDF dataset of known structure.
11.13  Reading a NetCDF Dataset with Unknown Names
Abstract code for reading a netCDF dataset of known structure.
11.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
2009 Unidata NetCDF Workshop for Developers and Data Providers