#3 Pyhdf 0.8.3 read deprecation

open
nobody
None
5
2008-11-10
2008-11-10
Anonymous
No

Reading from an HDF file produces the following deprecation messages:

/usr/lib64/python2.5/site-packages/pyhdf-0.8.3-py2.5-linux-x86_64.egg/pyhdf/SD.py:1876: DeprecationWarning: PyArray_FromDims: use PyArray_SimpleNew.
return _C._SDreaddata_0(self._id, data_type, start, count, stride)
/usr/lib64/python2.5/site-packages/pyhdf-0.8.3-py2.5-linux-x86_64.egg/pyhdf/SD.py:1876: DeprecationWarning: PyArray_FromDimsAndDataAndDescr: use PyArray_NewFromDescr.
return _C._SDreaddata_0(self._id, data_type, start, count, stride)

Example Code:
-------------
file = HDF(filename)
field = file.SD.select(fieldname)
data[:] = field[:] # or data[:] = field.get

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks