aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/utils
diff options
context:
space:
mode:
Diffstat (limited to 'fg21sim/utils')
-rw-r--r--fg21sim/utils/convert.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fg21sim/utils/convert.py b/fg21sim/utils/convert.py
index fc9a228..02a4ffd 100644
--- a/fg21sim/utils/convert.py
+++ b/fg21sim/utils/convert.py
@@ -60,8 +60,8 @@ def Sb_to_Tb(Sb, freq):
Tb : `~astropy.units.Quantity`
Brightness temperature, with default unit `au.K`
"""
- omega = 1.0 * au.sr
- Fnu = Sb * omega
+ omega = 1.0 * au.arcsec**2
+ Fnu = (Sb * omega).to(au.Jy) # [Jy]
return Fnu_to_Tb(Fnu, omega, freq)