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
IndexError - Can't run Hackrf_Sweep through Mossmann's Heatmap.py #814
Comments
The problem is actually coming from very low points in the sweep data. I have negative spikes or pits that jump from -60 to -90dB, and then it drops to -136 or -145. These pits are what is causing an IndexError. Mossman's Heatmap.py is trying to push_pixels but rgb_inner where the IndexError occurs on large negative spikes. Is it division by zero or something? The large negative value breaks the array index math computation perhaps but this is my first dive into Python and I'm slow any help is appreciated! line 621 img = push_pixels(args) File "./heatmap.py", line 422, in push_pixels pix[x,y+tape_height] = rgb(zs[x]) File "./heatmap.py", line 362, in rgb_inner return palette[tone_scaled] rgb_inner is defined:
rgb_inner is being called by rgb_fn by the function push_pixels:
|
I had completely forgotten that I forked heatmap.py long ago. My pull request was never merged, and the upstream project appeared abandoned, so I never made any attempt to keep it up to date. I recommend trying @miek's new heatmap. It is very new, but it worked for me when I tried it after installing rust and then using
|
I'm going to close this as there hasn't been a response in a while, but please re-open this issue or open a new one if you still need assistance. |
Merry Christmas!!!
Update Below!!!***
I ran a Hackrf_sweep driving around the NRQZ and I’m trying to run the CSVs through Mossmann’s Heatmap.py inside rtl-sdr-misc.
https://github.com/mossmann/rtl-sdr-misc
I split the csv up smaller, to only about 100MB, or 1,000,000 rows, then I reduced a test CSV down to only 9 rows and I'm still getting this error. I'm not sure if my scanning range is part of the issue, I ran the sweep from the upper minimum 1MHz to the upper maximum 7.25GHz. Additionally I also tried erasing the date, time, and redundant column fields, and the error changed to a decimal value within a int(). I'm getting an error because hack.hackrf_sweep records decimal values but heatmap.py uses int()
Here are 4 rows from a CSV of only 9 rows testing the Mossmann/Heatmap.py
Steps to reproduce
Expected behaviour
Output of HeatMap.PNG!
Actual behaviour
Stop on IndexError fault
Version information
Operating system:
Devuan BeoWulf
The text was updated successfully, but these errors were encountered: