aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2016-10-11 10:31:43 +0800
committerAaron LI <aaronly.me@outlook.com>2016-10-11 10:31:43 +0800
commita8ed62510538b02dd415e484cf9019d9a2549839 (patch)
tree3ef83c751e1694d944e0e104a53d89c29477ae16 /fg21sim
parente252342e4fb0c106734e5659203d36985242bc7c (diff)
downloadfg21sim-a8ed62510538b02dd415e484cf9019d9a2549839.tar.bz2
Update bin/fg21sim to support Galactic free-free component
* bin/fg21sim: check the "common/components" config to simulate the enabled components; * bin/fg21sim: add Galactic free-free component support; * galactic/freefree.py: fix missing attributes. NOTE: simulated free-free maps are WRONG!! Need check/debug!
Diffstat (limited to 'fg21sim')
-rw-r--r--fg21sim/galactic/freefree.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/fg21sim/galactic/freefree.py b/fg21sim/galactic/freefree.py
index 9a51777..28a92d6 100644
--- a/fg21sim/galactic/freefree.py
+++ b/fg21sim/galactic/freefree.py
@@ -83,6 +83,10 @@ class FreeFree:
self.filename_pattern = self.configs.getn("output/filename_pattern")
self.use_float = self.configs.getn("output/use_float")
self.clobber = self.configs.getn("output/clobber")
+ #
+ self.nside = self.configs.getn("common/nside")
+ self.freq_unit = au.Unit(self.configs.getn("frequency/unit"))
+ #
logger.info("Loaded and set up configurations")
def _load_halphamap(self):