From d20719ec45455020a81e18810151f699fbc41c29 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Fri, 26 Oct 2018 22:19:20 +0800 Subject: utils/units: Add J2erg and erg2J --- fg21sim/utils/units.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fg21sim/utils/units.py b/fg21sim/utils/units.py index e7deb17..401b1e8 100644 --- a/fg21sim/utils/units.py +++ b/fg21sim/utils/units.py @@ -58,6 +58,8 @@ class UnitConversions: # Energy keV2erg = au.keV.to(au.erg) erg2keV = 1.0 / keV2erg + J2erg = au.J.to(au.erg) + erg2J = 1.0 / J2erg # Angle rad2deg = au.rad.to(au.deg) deg2rad = 1.0 / rad2deg -- cgit v1.2.2