aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/extragalactic/pointsources/fr1.py
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-09-01 15:31:24 +0800
committerAaron LI <aly@aaronly.me>2017-09-01 15:31:24 +0800
commitfb559ff794b79246fe64c3f0a11ddc7c55d9a9a8 (patch)
treecc7b97ced86f74e2ec8c88a84a698b0bc46afb1f /fg21sim/extragalactic/pointsources/fr1.py
parente35fc3ce66a7dfe0099a17fdab83952460f52f62 (diff)
downloadfg21sim-fb559ff794b79246fe64c3f0a11ddc7c55d9a9a8.tar.bz2
Update "Fnu_to_Tb_fast()" to "Fnu_to_Tb()"
Diffstat (limited to 'fg21sim/extragalactic/pointsources/fr1.py')
-rw-r--r--fg21sim/extragalactic/pointsources/fr1.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fg21sim/extragalactic/pointsources/fr1.py b/fg21sim/extragalactic/pointsources/fr1.py
index 49969e0..4d337eb 100644
--- a/fg21sim/extragalactic/pointsources/fr1.py
+++ b/fg21sim/extragalactic/pointsources/fr1.py
@@ -321,11 +321,11 @@ class FRI(BasePointSource):
npix = hp.nside2npix(self.nside)
sr_to_arcsec2 = (np.rad2deg(1) * 3600) ** 2 # [sr] -> [arcsec^2]
core_area = 4 * np.pi / npix * sr_to_arcsec2 # [arcsec^2]
- Tb_core = convert.Fnu_to_Tb_fast(flux_core, core_area, freq) # [K]
+ Tb_core = convert.Fnu_to_Tb(flux_core, core_area, freq) # [K]
# lobe
lumo_lobe = lumo_151 * (1 - ratio_obs) / (1 + ratio_obs) # [Jy]
flux_lobe = (freq / freq_ref)**(-0.75) * lumo_lobe
- Tb_lobe = convert.Fnu_to_Tb_fast(flux_lobe, area, freq) # [K]
+ Tb_lobe = convert.Fnu_to_Tb(flux_lobe, area, freq) # [K]
Tb = [Tb_core, Tb_lobe]
return Tb