aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/extragalactic/clusters/main.py
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-10-19 16:44:59 +0800
committerAaron LI <aly@aaronly.me>2017-10-19 16:44:59 +0800
commitbac5d68002444faa9c2bf3c9c3c2e284b47cfd28 (patch)
tree7514475d164052877cd5924eeb1264f878879331 /fg21sim/extragalactic/clusters/main.py
parentf9c6e593d6d9b880ba41daf3112bde2fe22fb345 (diff)
downloadfg21sim-bac5d68002444faa9c2bf3c9c3c2e284b47cfd28.tar.bz2
clusters/halo: rewrite power/flux/Tb calc with k-correction considered
Diffstat (limited to 'fg21sim/extragalactic/clusters/main.py')
-rw-r--r--fg21sim/extragalactic/clusters/main.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/fg21sim/extragalactic/clusters/main.py b/fg21sim/extragalactic/clusters/main.py
index 70d5e6b..e6c6154 100644
--- a/fg21sim/extragalactic/clusters/main.py
+++ b/fg21sim/extragalactic/clusters/main.py
@@ -303,9 +303,10 @@ class GalaxyClusters:
halo.set_electron_spectrum(hdict["n_e"])
emissivity = halo.calc_emissivity(frequencies=self.frequencies)
- power = halo.calc_power(emissivity)
- flux = halo.calc_flux(emissivity)
- Tb_mean = halo.calc_brightness_mean(emissivity, self.frequencies,
+ power = halo.calc_power(self.frequencies, emissivity=emissivity)
+ # k-correction considered
+ flux = halo.calc_flux(self.frequencies)
+ Tb_mean = halo.calc_brightness_mean(self.frequencies, flux=flux,
pixelsize=self.sky.pixelsize)
# Update or add new items
hdict["frequency"] = self.frequencies # [MHz]