From ecdffc4780947a666bd51b20dfe27918c68ef97d Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Fri, 22 Jan 2021 16:57:47 +0000 Subject: [PATCH] Add Solar flux unit conversions --- sdrbase/util/units.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sdrbase/util/units.h b/sdrbase/util/units.h index 8faecc1fa..706da3851 100644 --- a/sdrbase/util/units.h +++ b/sdrbase/util/units.h @@ -213,6 +213,16 @@ public: return false; } + static float solarFluxUnitsToJansky(float sfu) + { + return sfu * 10000.0f; + } + + static float solarFluxUnitsToWattsPerMetrePerHertz(float sfu) + { + return sfu * 1e-22f; + } + }; #endif // INCLUDE_UNITS_H