diff options
Diffstat (limited to 'fg21sim/utils/units.py')
-rw-r--r-- | fg21sim/utils/units.py | 2 |
1 files changed, 2 insertions, 0 deletions
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 |