fhs / pyhdf

Python wrapper around the NCSA HDF version 4 library

Home Page:https://pypi.org/project/pyhdf/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

zmoon opened this issue · comments

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