fhs / pyhdf

Python wrapper around the NCSA HDF version 4 library
https://pypi.org/project/pyhdf/
Other
46 stars 15 forks source link

`.get()` fails for char array variable in v0.11 #67

Closed zmoon closed 1 year ago

zmoon commented 1 year ago

What version of pyhdf, HDF4, and Python are you using?

pyhdf version: 0.11.3 HDF4 C library version: 4.2.15 Python version: 3.10.11

What operating system are you using?

Linux

What did you do?

from pyhdf.SD import SD

sd = SD("tolnet-hdf4-test-data.hdf")
sd.select("PRESSURE_INDEPENDENT_SOURCE").get()  # e.g.

tolnet-hdf4-test-data.zip

What did you expect to see?

Worked fine in pyhdf v0.10

What did you see instead?

ValueError: data type must provide an itemsize