Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use proper scaling for dBfs

  • Loading branch information...
commit 3d69b7ff80a6437bc8bec832f09b801d4263f407 1 parent a39b07c
Nick Foster authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  python/modes_print.py
View
3  python/modes_print.py
@@ -36,11 +36,10 @@ def parse(self, message):
reference = float(reference)
timestamp = float(timestamp)
- #TODO this is suspect
if reference == 0.0:
refdb = -150.0
else:
- refdb = 10.0*math.log10(reference)
+ refdb = 20.0*math.log10(reference)
output = "(%.0f %.10f) " % (refdb, timestamp);
try:
Please sign in to comment.
Something went wrong with that request. Please try again.