aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/extragalactic/clusters
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-08-03 22:10:16 +0800
committerAaron LI <aly@aaronly.me>2017-08-03 22:10:16 +0800
commit7bcebf9daf5157ed249d162a75ff61d60fa98226 (patch)
tree613a3b563a0c58663dc1632d4b290295a45ae649 /fg21sim/extragalactic/clusters
parentc6f861ee32233733b081209f4578450893816ee7 (diff)
downloadfg21sim-7bcebf9daf5157ed249d162a75ff61d60fa98226.tar.bz2
Update against "Fnu_to_Tb_fast()" unit changes
Signed-off-by: Aaron LI <aly@aaronly.me>
Diffstat (limited to 'fg21sim/extragalactic/clusters')
-rw-r--r--fg21sim/extragalactic/clusters/clusters.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/fg21sim/extragalactic/clusters/clusters.py b/fg21sim/extragalactic/clusters/clusters.py
index 6886d84..94f00be 100644
--- a/fg21sim/extragalactic/clusters/clusters.py
+++ b/fg21sim/extragalactic/clusters/clusters.py
@@ -25,6 +25,7 @@ from ...utils.wcs import make_wcs
from ...utils.random import spherical_uniform
from ...utils.convert import Fnu_to_Tb_fast
from ...utils.grid import make_ellipse
+from ...utils.units import UnitConversions as AUC
logger = logging.getLogger(__name__)
@@ -480,7 +481,7 @@ class GalaxyClusters:
# Conversion coefficient: [ W/Hz/Mpc^2 ] => [ Jy ]
coef = 1.0502650403056097e-19
Fnu = coef * Lnu / (4*np.pi * distance**2) # [ Jy ]
- omega = size[0] * size[1] # [ deg^2 ]
+ omega = size[0] * size[1] * AUC.arcsec2deg**2 # [ arcsec^2 ]
Tb = Fnu_to_Tb_fast(Fnu, omega, freq)
return Tb