baseband
baseband copied to clipboard
Package to read and write radio baseband data
This is used by Japanese VLBI telescopes; see http://vlbi.sci.ibaraki.ac.jp/K5WWW/doc/vssp_format-e.100820.pdf Note that there are quite a few sub-formats, though one can probably cover it with a layout similar to VDIF. cc...
Currently only the first header of each VDIF frameset is used by stream readers, though the others are read into memory. It might be useful to check that all headers...
From https://github.com/mhvk/baseband-tasks/issues/242 ``` In [32]: import baseband.tasks.generators --------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) ~/python/test_chime_sideband.py in ----> 1 import baseband.tasks.generators ModuleNotFoundError: No module named 'baseband.tasks.generators' ``` Oddly, tab expansion does...
Specifically, 2x4 bit complex, but perhaps more generally any more minimal representation of baseband data.
Based on #472, I noticed that the General Info class could expose a few more attributes that are useful. Here are a couple I was surprised to see weren't provided:...
@00rebe wrote: > I found another file that throws out the error: AssertionError: problem loading frame set 7966. > Cannot find header nearby. ``` fh = baseband.vdif.open('/mnt/raid-project/gmrt/rlin/ek036b/data/ir/ek036b_ir_no0002.m5a') fh.seek(15360246) fh.read(5 *...
This might allow writing gated data more easily, and in principle could be done fairly easily by allowing `.seek` to set the offset/time (maybe warning if going backwards?). But perhaps...
As noted by @00rebe, if one seeks on purpose to a bad spot in the file and then tries reading, one gets ``` AttributeError: 'Mark5BStreamReader' object has no attribute '_frame'...
@theXYZT noted that "baseband doesn't show up correctly on Github dependency graphs because of [the pypi homepage not being the github one]". Turns out pypi gets this via `setup.py`, which...