aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/extragalactic/clusters/main.py
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-10-23 22:09:48 +0800
committerAaron LI <aly@aaronly.me>2017-10-23 22:09:48 +0800
commit998c64d7b5d54d1ef209f8eaf0992216ed130f67 (patch)
tree73d11edd19fab219d9aa35b21814c8bc9ef528c3 /fg21sim/extragalactic/clusters/main.py
parentfd48971ee510687401f7e383af7b6bd3478db299 (diff)
downloadfg21sim-998c64d7b5d54d1ef209f8eaf0992216ed130f67.tar.bz2
clusters/halo: merge halo_rprofile() & draw_halo(); Fix halo radius error
* Fix the error that misses to divide the halo radius by 3 for the e-folding radius, which causes the generated halo image has a 3x size! * Merge function "halo_rprofile()" into "draw_halo()" * Skip transform circular halo into elliptical one if "felong" is None
Diffstat (limited to 'fg21sim/extragalactic/clusters/main.py')
-rw-r--r--fg21sim/extragalactic/clusters/main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fg21sim/extragalactic/clusters/main.py b/fg21sim/extragalactic/clusters/main.py
index 0be553a..3327ea8 100644
--- a/fg21sim/extragalactic/clusters/main.py
+++ b/fg21sim/extragalactic/clusters/main.py
@@ -352,8 +352,8 @@ class GalaxyClusters:
if i % 100 == 0:
logger.info("[%d/%d] %.1f%% ..." % (i, num, 100*i/num))
theta_e = hdict["Rhalo_angular"] / self.sky.pixelsize
- rprofile = helper.halo_rprofile(re=theta_e)
- template = helper.draw_halo(rprofile, felong=hdict["felong"],
+ template = helper.draw_halo(radius=theta_e,
+ felong=hdict["felong"],
rotation=hdict["rotation"])
hdict["template"] = template
logger.info("Done drawn halo template images.")