pyhdf.HDF | index /usr/lib/python2.4/site-packages/pyhdf/HDF.py |
A module of the pyhdf package implementing the basic API of the
NCSA HDF4 library.
(see: hdf.ncsa.uiuc.edu)
Author: Andre Gosselin
Maurice-Lamontagne Institute
gosselina@dfo-mpo.gc.ca
Version: 0.7-3
Date: July 13 2005
Introduction
------------
The role of the HDF module is to provide support to other modules of the
pyhdf package. It defines constants specifying file opening modes and
various data types, methods for accessing files, plus a few utility
functions to query library version and check if a file is an HDF one.
It should be noted that, among the modules of the pyhdf package, SD is
special in the sense that it is self-contained and does not need support
from the HDF module. For example, SD provides its own file opening and
closing methods, whereas VS uses methods of the HDF.HDF class for that.
Functions and classes summary
-----------------------------
The HDF module provides the following classes.
HC
The HC class holds constants defining opening modes and
various data types.
HDF
The HDF class provides methods to open and close an HDF file,
and return instances of the major HDF APIs (except SD).
To instantiate an HDF class, call the HDF() constructor.
methods:
constructors:
HDF() open an HDF file, creating the file if necessary,
and return an HDF instance
vstart() initialize the VS (Vdata) API over the HDF file and
return a VS instance
vgstart() initialize the V (Vgroup) interface over the HDF file
and return a V instance.
closing file
close() close the HDF file
inquiry
getfileversion() return info about the version of the HDF file
The HDF module also offers the following functions.
inquiry
getlibversion() return info about the version of the library
ishdf() determine whether a file is an HDF file
Modules | ||||||
|
Classes | ||||||||||||||||||||||||
|
Functions | ||
|
Data | ||
__all__ = ['HDF', 'HDF4Error', 'HC', 'getlibversion', 'ishdf'] |