kiwiclient icon indicating copy to clipboard operation
kiwiclient copied to clipboard

Interpreting KiwiSDRStream Waterfall Stream when Zoom is 0 vs Zoom 1 through 4

Open mrzachhigginsofficial opened this issue 1 year ago • 2 comments

Summary: The waterfall data stream is different at zoom 0 than it is at zoom 1-4 and I don't know how to interpret it when zoom=0.


I am trying to utilize the KiwiSDRStream class to receive the entire frequency span waterfall data stream (0 to 30 MHz) and plot it in a pg.plotwidget in real-time.

Example of my progress so far. image

However, zoom 1 appears to be half of the freq span, not 0 to 30 MHz. I verified visually by comparing the wf from the web UI to the screenshot

image

When I set the zoom to 0, I get a completely different type of data stream with values between -32768 and +32768 (assuming hz) and is 2038 bytes in length (after unpacking) using the KiwiSDRStream class (as mentioned above). While inconvenient, since the length is different and I'm not doing any interpolation yet, I have to reinitialize the entire image in my graph. Also, I can't appear to find the right color map to display this data (sample results below).

image

Can you provide any insights as to what I should expect to compute differently between zoom 0 and 1-4? I originally assumed that these data streams should be the same, but it appears they are not.

Really cool library, thank you for sharing with the world. Any help you can provide would be really appreciated! Thanks!

mrzachhigginsofficial avatar Oct 17 '22 04:10 mrzachhigginsofficial