Next: , Previous: Introduction, Up: Introduction


Class Hierarchy

The class for netCDF file objects is NcFile.

The components of a netCDF file are dimensions, variables, and attributes. There is a class for each of these kinds of objects; NcDim, NcVar, and NcAtt. Variables and attributes share some common characteristics that are factored out in the abstract base class NcTypedComponent.

An auxiliary class, NcValues, provides a type for arrays of values that are read from or written to netCDF files. Another auxiliary class, NcError, provides rudimentary facilities for handling errors.

     NcFile                     netCDF file
     
     NcDim                      dimension
     
     NcTypedComponent           abstract base class
             NcVar                variable
             NcAtt                attribute
     
     NcValues                   abstract base class for array
             NcValues_ncbyte      array of bytes
             NcValues_char        array of characters
             NcValues_short       array of shorts
             NcValues_int         array of ints
             NcValues_long        array of longs
             NcValues_float       array of floats
             NcValues_double      array of doubles
     
     NcError                    for error handling