From e748c1fd0928a1a98324b465de6f78e062052a73 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Mon, 17 Oct 2016 15:12:06 +0800 Subject: bin/fg21sim: Support new component "galactic/snr" Also update the general config for the new "galactic/snr" component. --- bin/fg21sim | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'bin') diff --git a/bin/fg21sim b/bin/fg21sim index 2b087a7..1143baa 100755 --- a/bin/fg21sim +++ b/bin/fg21sim @@ -19,6 +19,7 @@ from fg21sim.configs import configs, validate_configs from fg21sim.utils import setup_logging from fg21sim.galactic import Synchrotron as GalacticSynchrotron from fg21sim.galactic import FreeFree as GalacticFreeFree +from fg21sim.galactic import SuperNovaRemnants as GalacticSNR def main(): @@ -82,6 +83,15 @@ def main(): logger.info("Done simulate Galactic free-free foreground!") fg_maps[id_gfree] = hpmap_gfree + # Galactic supernova remnants + id_gsnr = "galactic/snr" + if id_gsnr in fg_components: + logger.info("Simulating the Galactic supernova remnants emission ...") + gsnr = GalacticSNR(configs) + hpmap_gsnr = gsnr.simulate(frequencies) + logger.info("Done simulate Galactic supernova remnants foreground!") + fg_maps[id_gsnr] = hpmap_gsnr + if __name__ == "__main__": main() -- cgit v1.2.2