There are several Python libraries for netCDF. A more comprehensive
listing is available, but current software includes the following.
Jeff Whitaker (NOAA Earth System Research Lab) has developed a
netCDF-4 module
for python, which handles classic-model netCDF-4 files,
multiple unlimited dimensions, groups, compression,
new netCDF-4 atomic types, and unnested user-defined types.
Dave Brown of NCAR's Computational and Information Systems Laboratory has developed PyNIO, a Python
package that allows read and/or write access to a variety of data
formats using an interface modeled on netCDF. Currently supported
formats include netCDF classic, netCDF-4 classic model, HDF4, GRIB1
(read only), and HDF-EOS Grid and Swath data (read only).
André Gosselin of the Institut Maurice-Lamontagne, Péches & Océans Canada,
has implemented pycdf, a new Python interface to the netCDF library.
pycdf requires NumPy, the Numeric python package, and
installs through the simple "python setyp.py install" command.
Bill Noon (Cornell) has implemented another netCDF Python
module that allows easy creation, access, and browsing of netCDF data. The bindings
also use the udunits library to do unit
conversions.
Konrad Hinsen has developed a netCDF interface and integrated it into his ScientificPython
package.
Examples
Annotated examples of complete Python netCDF programs (using the
ScientificPython package) are available from
the program examples page.