From e65379d62e5f92f96603775e8806ab32b97c60a9 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Wed, 23 Aug 2017 15:17:49 +0800 Subject: galactic/synchrotron.py: Take absolute value on spectral index --- fg21sim/galactic/synchrotron.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'fg21sim') diff --git a/fg21sim/galactic/synchrotron.py b/fg21sim/galactic/synchrotron.py index 96f4df1..5881c4c 100644 --- a/fg21sim/galactic/synchrotron.py +++ b/fg21sim/galactic/synchrotron.py @@ -223,7 +223,8 @@ class Synchrotron: logger.info("Simulating {name} map at {freq} ({unit}) ...".format( name=self.name, freq=frequency, unit=self.freq_unit)) skymap_f = (self.template.data * - (frequency / self.template_freq) ** self.indexmap.data) + (frequency/self.template_freq) ** + (-np.abs(self.indexmap.data))) # if self.save: filepath = self.output(skymap_f, frequency) -- cgit v1.2.2