Skip to content
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

More than 8 bits per sample for vdif #527

Open
jswoboda opened this issue Sep 26, 2024 · 1 comment
Open

More than 8 bits per sample for vdif #527

jswoboda opened this issue Sep 26, 2024 · 1 comment

Comments

@jswoboda
Copy link

I was trying to write write 16 bit complex samples to vdif but there baseband fails when I try to write something greater than 8 bits:

ValueError: VDIFPayload cannot encode data with 16 bits

From what I understand given the vdiff spec is that there is a maximum of 32 bits per sample. The highest number of bits per sample is 8 that I've been able to get to work.

Given the rise in RFI it would be a good idea have the capability to deal with higher bit depths.

@mhvk
Copy link
Owner

mhvk commented Sep 27, 2024

Indeed, VDIF supports it but beyond the data formats supported by mark5access, I tend to add formats only as I encounter data sets that need them, so 16 bit is not yet there. I can add it, though, if it is useful to you -- even better if you have a small actual data sample to base the tests on. Or, if you feel adventurous, make a PR adding an encoder and decoder to https://github.com/mhvk/baseband/blob/main/baseband/base/encoding.py
and then use them in https://github.com/mhvk/baseband/blob/main/baseband/vdif/payload.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants