Closed umranhaji closed 6 years ago
Hey @umranhaji -- h5 files are read with an external library called h5py
. You would read the header as:
h = h5py.File(filename)
header = h['data'].attrs.items()
Everything within sigproc.py
is solely for reading sigproc-standard filterbanks.
We could / (should?) theoretically provide a high-level read_header()
function that worked on both h5 and fil files.
Thanks @telegraphic! And yes, I think a universal blimpy function to read headers would be convenient and appreciated in the future, even if just a combined wrapper around the sigproc and h5py functions.
(moved discussion to a new issue labeled as 'enhancement'
Hi folks,
The older version of blimpy allowed
.fil
files to have their headers read with theread_header
function. Are the.h5
files supposed to be compatible with this function as well? It's not clear fromread_header
's docstring or from my perusing of the source code for the past several minutes.I ask because I am getting errors when attempting to use this function on
.h5
files. For example, attempting to callread_header
on any of the files inbls0:/mnt_bls5/datax3/holding.Lband.692.0001020304050607/
gives me the following error: