From a8ed62510538b02dd415e484cf9019d9a2549839 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 11 Oct 2016 10:31:43 +0800 Subject: 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! --- fg21sim/galactic/freefree.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'fg21sim') 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): -- cgit v1.2.2