hdf

Python: Read compressed (.gz) HDF file without writing and saving uncompressed file

Python: Read compressed (.gz) HDF file without writing and saving uncompressed file Question: I have a large number of compressed HDF files, which I need to read. file1.HDF.gz file2.HDF.gz file3.HDF.gz … I can read in uncompressed HDF files with the following method from pyhdf.SD import SD, SDC import os os.system(‘gunzip < file1.HDF.gz > file1.HDF’) HDF …

Total answers: 2