aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/extragalactic/clusters/halo.py
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-07-31 23:47:52 +0800
committerAaron LI <aly@aaronly.me>2017-07-31 23:47:52 +0800
commitc75dfd265e82b62af330f29be492a35c831238cc (patch)
treed326ddb6844fcd4de7e571faab079f06497a62c0 /fg21sim/extragalactic/clusters/halo.py
parent68dac5c2e1972c3868503b8ce6208b455240c61c (diff)
downloadfg21sim-c75dfd265e82b62af330f29be492a35c831238cc.tar.bz2
clusters: Fix several small issues on wrong variable names
Also update logging message for RadioHalo a bit. Signed-off-by: Aaron LI <aly@aaronly.me>
Diffstat (limited to 'fg21sim/extragalactic/clusters/halo.py')
-rw-r--r--fg21sim/extragalactic/clusters/halo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fg21sim/extragalactic/clusters/halo.py b/fg21sim/extragalactic/clusters/halo.py
index 333da4e..50c1242 100644
--- a/fg21sim/extragalactic/clusters/halo.py
+++ b/fg21sim/extragalactic/clusters/halo.py
@@ -170,7 +170,7 @@ class RadioHalo:
The angular radius of the radio halo.
Unit: [arcsec]
"""
- DA = COSMO.DA(self.z) * 1e3 # [Mpc] -> [kpc]
+ DA = COSMO.DA(self.z_obs) * 1e3 # [Mpc] -> [kpc]
theta = self.radius / DA # [rad]
return theta * AUC.rad2arcsec
@@ -316,7 +316,7 @@ class RadioHalo:
Unit: [Jy] = 1e-23 [erg/s/cm^2/Hz] = 1e-26 [W/m^2/Hz]
"""
power = self.calc_power(emissivity) # [W/Hz]
- DL = COSMO.DL(self.z) * AUC.Mpc2m # [m]
+ DL = COSMO.DL(self.z_obs) * AUC.Mpc2m # [m]
flux = 1e26 * power / (4*np.pi * DL*DL) # [Jy]
return flux