-
Notifications
You must be signed in to change notification settings - Fork 39
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
Bug with h52fil #41
Comments
Hi Matt, does the file open with the siggproc header tool? Can you please
point your me toward the data file causing it, or is it all filterbanks?
…On Thu., 12 Jul. 2018, 08:20 Matt Lebofsky - SETI, ***@***.***> wrote:
Assigned #41 <#41> to
@telegraphic <https://github.com/telegraphic>.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#41 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAriI4-719GqtpUMq2HQzC9YOS3R8Ziuks5uFnoQgaJpZM4VL7vb>
.
|
Seems to be all hdf5 files (I'm trying to convert h5 files back into
filterbank). So the sigproc header tool isn't relevant. But watutil does
work to display the header (i.e. watutil -i filename)
You can find a bunch of files to test in, say, bls5:/datax/holding
On Wed, Jul 11, 2018 at 4:22 PM, Danny Price <notifications@github.com>
wrote:
… Hi Matt, does the file open with the siggproc header tool? Can you please
point your me toward the data file causing it, or is it all filterbanks?
On Thu., 12 Jul. 2018, 08:20 Matt Lebofsky - SETI, <
***@***.***>
wrote:
> Assigned #41 <#41> to
> @telegraphic <https://github.com/telegraphic>.
>
> —
> You are receiving this because you were assigned.
> Reply to this email directly, view it on GitHub
> <#41 (comment)>,
or mute
> the thread
> <https://github.com/notifications/unsubscribe-auth/AAriI4-
719GqtpUMq2HQzC9YOS3R8Ziuks5uFnoQgaJpZM4VL7vb>
> .
>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#41 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AH2JCh9q544x-Kd9LiWvIN4aiMtlYhsxks5uFoi1gaJpZM4VL7vb>
.
--
Matt Lebofsky - Breakthrough Listen - lebofsky@berkeley.edu - (510) 207-0832
|
* Also moved 2-bit support to calc_n_ints_in_file * Fixed read_header for Py2/Py3 (fixes issue UCBerkeleySETI#41)
H'ok, I think this is fixed in my last set of changes. This was specifically related to Py2/Py3 compatibility (AGAIN). I also found a missing |
Thanks Danny! I'm looking at all the changes and merging soon. |
* Also moved 2-bit support to calc_n_ints_in_file * Fixed read_header for Py2/Py3 (fixes issue UCBerkeleySETI#41)
Trying to convert a filterbank file to hdf5 at GB using blimpy 1.2.1 (though I tried 1.2.0 and 1.1.8). And I get this error:
h52fil /mnt_bls4/datax3/holding/spliced_blc0001020304050607_guppi_57708_17466_HIP19335_0003.gpuspec.0002.h5 -o /datax3/users/sci -n filfromf5.fil
Traceback (most recent call last):
File "/opt/pyve/eepy/bin/h52fil", line 11, in
load_entry_point('blimpy==1.2.1', 'console_scripts', 'h52fil')()
File "/opt/pyve/eepy/local/lib/python2.7/site-packages/blimpy-1.2.1-py2.7.egg/blimpy/h52fil.py", line 60, in cmd_tool
make_fil_file(filename, out_dir = opts.out_dir, new_filename=opts.new_filename)
File "/opt/pyve/eepy/local/lib/python2.7/site-packages/blimpy-1.2.1-py2.7.egg/blimpy/h52fil.py", line 41, in make_fil_file
fil_file.write_to_fil(new_filename)
File "/opt/pyve/eepy/local/lib/python2.7/site-packages/blimpy-1.2.1-py2.7.egg/blimpy/waterfall.py", line 227, in write_to_fil
self.__write_to_fil_light(filename_out)
File "/opt/pyve/eepy/local/lib/python2.7/site-packages/blimpy-1.2.1-py2.7.egg/blimpy/waterfall.py", line 274, in __write_to_fil_light
fileh.write(generate_sigproc_header(self)) #generate_sigproc_header comes from sigproc.py
File "/opt/pyve/eepy/local/lib/python2.7/site-packages/blimpy-1.2.1-py2.7.egg/blimpy/sigproc.py", line 375, in generate_sigproc_header
header_string += to_sigproc_keyword(keyword, f.header[keyword])
File "/opt/pyve/eepy/local/lib/python2.7/site-packages/blimpy-1.2.1-py2.7.egg/blimpy/sigproc.py", line 350, in to_sigproc_keyword
return np.int32(len(keyword)).tostring() + keyword + value_dtype(value).tostring()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xaa in position 4: ordinal not in range(128)
Not sure how to proceed... I was told to create this issue...
The text was updated successfully, but these errors were encountered: