2008 Unidata NetCDF Workshop for Developers and Data Providers > NetCDF APIs
5.8 Python APIs
There are at least six Python libraries for netCDF.
- 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.
- Jeff Whitaker of the NOAA Earth System Research Lab has developed a
netCDF-4 module for python.
- 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, HDF4, GRIB1 (read only), and HDF-EOS Grid and Swath
data (read only).
- Christian Dieterich of the University of Chicago wrote pynci, which provides access to the C netCDF interface
from the Python prompt.
Examples
Annotated examples of complete Python netCDF programs (using the
ScientificPython package) are available from
the program examples page.
NetCDF-4 note:
Jeff Whitaker's python module handles classic-model netCDF-4 files,
multiple unlimited dimensions, groups, compression, and
new netCDF-4 atomic types, but not user-defined types.
2008 Unidata NetCDF Workshop for Developers and Data Providers > NetCDF APIs