2010 Unidata NetCDF Workshop > Introduction to the NetCDF APIs and Example Programs
9.13 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.
- Examples are available from the website
example page, as part of the NetCDF
Tutorial, or in the "examples" subdirectory in the netCDF distribution.
- The website
example page also includes Java examples, and user contributed
examples in Python, Perl, MATLAB, and IDL. (We still need equivalent
Ruby examples.)
- The CDL output for each example file can be found in
the examples/CDL directory of the source distribution. By checking the
resulting example file against the CDL
in the distribution, the examples also serve as end-to-end testing of
the library and utilities.
- More examples are planned:
- Generic examples, such as a program to copy
an arbitrary netCDF file through each language interface.
- Examples focusing on the use of new netCDF-4 performance and
data model features.
- We welcome instructive new examples, in any
language. Send your example, which should include a program to write
a file, and another to read it, to support-netcdf@unidata.ucar.edu.
2010 Unidata NetCDF Workshop > Introduction to the NetCDF APIs and Example Programs