diff options
author | Aaron LI <aly@aaronly.me> | 2018-10-26 22:19:20 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2018-10-26 22:19:20 +0800 |
commit | d20719ec45455020a81e18810151f699fbc41c29 (patch) | |
tree | 0613f61b1f3ad7814a5e0dcb0e45fd46279eb26e /fg21sim | |
parent | a97128f666cbc61e1fd255a339001a9ad490c006 (diff) | |
download | fg21sim-d20719ec45455020a81e18810151f699fbc41c29.tar.bz2 |
utils/units: Add J2erg and erg2J
Diffstat (limited to 'fg21sim')
-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 |