diff options
author | Aaron LI <aly@aaronly.me> | 2017-08-27 12:36:44 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2017-08-27 12:36:44 +0800 |
commit | 466eec34aab338757e59a06b8b0d38c37047f19f (patch) | |
tree | 7714bee0d1e1981a9c4213e70bff39880ff11a62 /fg21sim/galactic | |
parent | ec2b93030d0077d2598f523dab4f6df8ed2e09b4 (diff) | |
download | fg21sim-466eec34aab338757e59a06b8b0d38c37047f19f.tar.bz2 |
freefree.py: Remove units of "halphamap" and "dustmap"
Diffstat (limited to 'fg21sim/galactic')
-rw-r--r-- | fg21sim/galactic/freefree.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/fg21sim/galactic/freefree.py b/fg21sim/galactic/freefree.py index 16535ef..f14d9a7 100644 --- a/fg21sim/galactic/freefree.py +++ b/fg21sim/galactic/freefree.py @@ -30,7 +30,6 @@ import os import logging import numpy as np -import astropy.units as au from ..sky import get_sky @@ -77,11 +76,7 @@ class FreeFree: """ comp = self.compID self.halphamap_path = self.configs.get_path(comp+"/halphamap") - self.halphamap_unit = au.Unit( - self.configs.getn(comp+"/halphamap_unit")) self.dustmap_path = self.configs.get_path(comp+"/dustmap") - self.dustmap_unit = au.Unit( - self.configs.getn(comp+"/dustmap_unit")) self.f_dust = self.configs.getn(comp+"/dust_fraction") self.halpha_abs_th = self.configs.getn(comp+"/halpha_abs_th") # [mag] self.Te = self.configs.getn(comp+"/electron_temperature") # [K] @@ -100,16 +95,8 @@ class FreeFree: """ logger.info("Loading H[alpha] map ...") self.halphamap = self.sky.open(self.halphamap_path) - # Validate input map unit - if self.halphamap_unit != au.Unit("Rayleigh"): - raise ValueError("unsupported Halpha map unit: {0}".format( - self.halphamap_unit)) logger.info("Loading dust map ...") self.dustmap = self.sky.open(self.dustmap_path) - # Validate input map unit - if self.dustmap_unit != au.Unit("MJy / sr"): - raise ValueError("unsupported dust map unit: {0}".format( - self.dustmap_unit)) def _correct_dust_absorption(self): """ |