From 3d69b7ff80a6437bc8bec832f09b801d4263f407 Mon Sep 17 00:00:00 2001 From: Nick Foster Date: Sat, 21 Jul 2012 11:26:49 -0700 Subject: [PATCH] Use proper scaling for dBfs --- python/modes_print.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/modes_print.py b/python/modes_print.py index e90d4f0..dd611c7 100644 --- a/python/modes_print.py +++ b/python/modes_print.py @@ -36,11 +36,10 @@ class modes_output_print(modes_parse.modes_parse): 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: