aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/extragalactic/clusters/halo.py
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-07-30 10:19:18 +0800
committerAaron LI <aly@aaronly.me>2017-07-30 10:19:18 +0800
commit1abb6bfddb6858fd0140accaf7eece61b3764ae4 (patch)
tree59a0df3353380f61ea5ca8c8630232199d1eecb9 /fg21sim/extragalactic/clusters/halo.py
parent4632691c206502cbbf5396515d181c6e5c34f026 (diff)
downloadfg21sim-1abb6bfddb6858fd0140accaf7eece61b3764ae4.tar.bz2
clusters/halo.py: Add property "angular_radius" (unit: [arcsec])
Signed-off-by: Aaron LI <aly@aaronly.me>
Diffstat (limited to 'fg21sim/extragalactic/clusters/halo.py')
-rw-r--r--fg21sim/extragalactic/clusters/halo.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/fg21sim/extragalactic/clusters/halo.py b/fg21sim/extragalactic/clusters/halo.py
index b65cd08..adc2bc5 100644
--- a/fg21sim/extragalactic/clusters/halo.py
+++ b/fg21sim/extragalactic/clusters/halo.py
@@ -159,6 +159,16 @@ class RadioHalo:
return r_halo
@property
+ def angular_radius(self):
+ """
+ The angular radius of the radio halo.
+ Unit: [arcsec]
+ """
+ DA = COSMO.DA(self.z) * 1e3 # [Mpc] -> [kpc]
+ theta = self.radius / DA # [rad]
+ return theta * AUC.rad2arcsec
+
+ @property
def volume(self):
"""
The halo volume, calculated from the above radius.