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

ValueError: math domain error #44

Closed
alphapats opened this issue Jan 19, 2022 · 2 comments
Closed

ValueError: math domain error #44

alphapats opened this issue Jan 19, 2022 · 2 comments

Comments

@alphapats
Copy link

When I am trying to parse output.bits using iridium-parser.py, I am getting following error after few frames.
`Traceback (most recent call last):
File "iridium-parser.py", line 1774, in
do_input(input)
File "iridium-parser.py", line 1691, in do_input
perline(Message(line.strip()).upgrade())
File "iridium-parser.py", line 228, in init
self.leveldb=20*log(self.level,10)
ValueError: math domain error

`
Anyone else also facing the same problem??

@Sec42
Copy link
Member

Sec42 commented Jan 19, 2022

This likely means the signal level for that packet in the bits file was 0. We seem to output it to 5 digits of precision in gr-iridium which means that your signal level was smaller than -100dBFS

Which kind of SDR are you using that can receive such low signals?

Nonetheless, I'll push a workaround in a bit so the parser doesn't die on these lines.

@Sec42
Copy link
Member

Sec42 commented Jan 19, 2022

It should work now. Please report back if it still doesn't.

@Sec42 Sec42 closed this as completed Jan 19, 2022
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