diff options
author | Aaron LI <aly@aaronly.me> | 2017-07-19 16:34:40 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2017-07-19 16:34:40 +0800 |
commit | 9b7f99bbd0eca0e611601dd936c1f7948f8cd58a (patch) | |
tree | cde8dd145d1a560213fa1f4eacefe9ad80b7e40b /fg21sim/utils/units.py | |
parent | bfc2b52d6c12553290742fcf793e48b1133e7dad (diff) | |
download | fg21sim-9b7f99bbd0eca0e611601dd936c1f7948f8cd58a.tar.bz2 |
Use [arcsec] as the unit for pixel size and resolution
Signed-off-by: Aaron LI <aly@aaronly.me>
Diffstat (limited to 'fg21sim/utils/units.py')
-rw-r--r-- | fg21sim/utils/units.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fg21sim/utils/units.py b/fg21sim/utils/units.py index aea0f92..bb8f670 100644 --- a/fg21sim/utils/units.py +++ b/fg21sim/utils/units.py @@ -50,6 +50,13 @@ class UnitConversions: keV2erg = au.keV.to(au.erg) # Angle rad2deg = au.rad.to(au.deg) + deg2rad = au.deg.to(au.rad) + arcmin2deg = au.arcmin.to(au.deg) + deg2arcmin = au.deg.to(au.arcmin) + arcsec2deg = au.arcsec.to(au.deg) + deg2arcsec = au.deg.to(au.arcsec) + arcmin2arcsec = au.arcmin.to(au.arcsec) + arcsec2arcmin = au.arcsec.to(au.arcmin) class Constants: |