pyhdf is a python wrapper around the NCSA HDF version 4 library. The SD (Scientific Dataset), VS (Vdata) and V (Vgroup) API's are currently implemented. NetCDF files can also be read and modified. It supports both Python 2 and Python 3.
Note: The sourceforge pyhdf website and project are out-of-date. The original author of pyhdf have abandoned the project and it is currently maintained in github.
Version 0.9.x was called
python-hdf4
in PyPI because at that time we didn't have
access to the
pyhdf package in PyPI. For version
0.10.0 and onward, please install pyhdf
instead of python-hdf4
.
See pyhdf installation instructions or doc/install.rst.
See pyhdf documentation.
Additional documentation on the HDF4 format can be found in the HDF4 Support Page.
Example python programs using the pyhdf package can be found inside the examples/ subdirectory.