-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Universal read_header function #61
Comments
This looks interesting, I'll give it a shot. Few questions though:
|
Hey @dan-rds -- basically this meant to recreate https://github.com/UCBerkeleySETI/blimpy/blob/master/blimpy/io/sigproc.py#L160 for hdf5 files also. So add to HDF5 file reading a utility: def read_header(filename, return_idxs=False):
""" Read blimpy header and return a Python dictionary of key:value pairs
Args:
filename (str): name of file to open
Optional args:
return_idxs (bool): Default False. If true, returns the file offset indexes
for values
returns: dictionary of key:value pairs
""" We would want to be able to do |
Just had a look at the blimpy/blimpy/io/file_wrapper.py Line 384 in ebce506
So I would move this from the class into a new file |
That's all? |
pretty much! |
As discussed in #60, it may be useful to have a universal
read_header()
function that works on all file types. Starting this issue for discussion, this certainly relates to the roadmap discussion #38 but could be implemented pretty easily.The text was updated successfully, but these errors were encountered: