diff options
Diffstat (limited to 'fg21sim/extragalactic/pointsources/radioquiet.py')
-rw-r--r-- | fg21sim/extragalactic/pointsources/radioquiet.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/fg21sim/extragalactic/pointsources/radioquiet.py b/fg21sim/extragalactic/pointsources/radioquiet.py index 2d2eefe..f07f8dc 100644 --- a/fg21sim/extragalactic/pointsources/radioquiet.py +++ b/fg21sim/extragalactic/pointsources/radioquiet.py @@ -140,8 +140,9 @@ class RadioQuiet(BasePointSource): Parameters ------------ - area: `~astropy.units.Quantity` - Area of the PS, e.g., `1.0*au.sr2` + area: float + Area of the PS + Unit: [arcsec^2] freq: `~astropy.units.Quantity` Frequency, e.g., `1.0*au.MHz` @@ -168,8 +169,6 @@ class RadioQuiet(BasePointSource): Parameters ------------ - area: `~astropy.units.Quantity` - Area of the PS, e.g., `1.0*au.sr` freq: `~astropy.units.Quantity` Frequency, e.g., `1.0*au.MHz` @@ -181,9 +180,11 @@ class RadioQuiet(BasePointSource): # Tb_list num_ps = self.ps_catalog.shape[0] Tb_list = np.zeros((num_ps,)) + sr_to_arcsec2 = (np.rad2deg(1) * 3600) ** 2 # [sr] -> [arcsec^2] # Iteratively calculate Tb for i in range(num_ps): ps_area = self.ps_catalog['Area (sr)'][i] # [sr] - Tb_list[i] = self.calc_single_Tb(ps_area, freq) + area = ps_area * sr_to_arcsec2 + Tb_list[i] = self.calc_single_Tb(area, freq) return Tb_list |