aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/extragalactic/clusters
diff options
context:
space:
mode:
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