From 280f767d850322190e72550cefdfcdee405c195e Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 26 Sep 2017 10:54:53 +0800 Subject: utils/units.py: Add eV and keV to temperature conversions --- fg21sim/utils/units.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'fg21sim') diff --git a/fg21sim/utils/units.py b/fg21sim/utils/units.py index a6d7034..0389715 100644 --- a/fg21sim/utils/units.py +++ b/fg21sim/utils/units.py @@ -67,6 +67,9 @@ class UnitConversions: deg2arcsec = au.deg.to(au.arcsec) arcmin2arcsec = au.arcmin.to(au.arcsec) arcsec2arcmin = au.arcsec.to(au.arcmin) + # Temperature + eV2K = au.eV.to(ac.k_B*au.K) + keV2K = au.keV.to(ac.k_B*au.K) class Constants: -- cgit v1.2.2