aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/galactic
diff options
context:
space:
mode:
Diffstat (limited to 'fg21sim/galactic')
-rw-r--r--fg21sim/galactic/synchrotron.py3
1 files changed, 2 insertions, 1 deletions
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)