aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/extragalactic/clusters/main.py
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-01-05 20:59:19 +0800
committerAaron LI <aly@aaronly.me>2018-01-05 20:59:19 +0800
commit36610bafadfc60f49799e5d22a7999e9e5e0ebef (patch)
tree94e886cb6351a51ef7c75ded3c124cedc545e5f1 /fg21sim/extragalactic/clusters/main.py
parent900dc8a09932dc3d101e66c8da3c7449a34bc983 (diff)
downloadfg21sim-36610bafadfc60f49799e5d22a7999e9e5e0ebef.tar.bz2
clusters: small cleanups
Diffstat (limited to 'fg21sim/extragalactic/clusters/main.py')
-rw-r--r--fg21sim/extragalactic/clusters/main.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/fg21sim/extragalactic/clusters/main.py b/fg21sim/extragalactic/clusters/main.py
index a060416..688f19e 100644
--- a/fg21sim/extragalactic/clusters/main.py
+++ b/fg21sim/extragalactic/clusters/main.py
@@ -250,11 +250,15 @@ class GalaxyClusters:
if ii % 50 == 0:
logger.info("[%d/%d] %.1f%% ..." % (ii, num, 100*ii/num))
cdict = self.catalog[idx]
- z_obs = cdict["z"]
- M_obs = cdict["mass"]
merger_num = cdict["merger_num"]
- logger.info("[%d/%d] M[%.2e] @ z[%.3f] with %d mergers" %
- (ii, num, M_obs, z_obs, merger_num))
+ M_obs = cdict["mass"]
+ z_obs = cdict["z"]
+ M1 = cdict["merger_mass1"][merger_num-1]
+ z1 = cdict["merger_z"][merger_num-1]
+ info = ("[%d/%d] " % (ii, num) +
+ "M(%.2e)@z(%.3f) -> M(%.2e)@z(%.3f) with %d merger(s)" %
+ (ii, num, M1, z1, M_obs, z_obs, merger_num))
+ logger.info(info)
halo = RadioHaloAM(M_obs=M_obs, z_obs=z_obs,
M_main=cdict["merger_mass1"],
M_sub=cdict["merger_mass2"],
@@ -265,6 +269,7 @@ class GalaxyClusters:
data = OrderedDict([
("z0", z_obs),
("M0", M_obs), # [Msun]
+ ("merger_num", merger_num),
("lon", cdict["lon"]), # [deg] longitude
("lat", cdict["lat"]), # [deg] longitude
("felong", cdict["felong"]), # fraction of elongation