diff options
author | Aaron LI <aly@aaronly.me> | 2017-08-03 22:10:16 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2017-08-03 22:10:16 +0800 |
commit | 7bcebf9daf5157ed249d162a75ff61d60fa98226 (patch) | |
tree | 613a3b563a0c58663dc1632d4b290295a45ae649 /fg21sim/galactic | |
parent | c6f861ee32233733b081209f4578450893816ee7 (diff) | |
download | fg21sim-7bcebf9daf5157ed249d162a75ff61d60fa98226.tar.bz2 |
Update against "Fnu_to_Tb_fast()" unit changes
Signed-off-by: Aaron LI <aly@aaronly.me>
Diffstat (limited to 'fg21sim/galactic')
-rw-r--r-- | fg21sim/galactic/snr.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fg21sim/galactic/snr.py b/fg21sim/galactic/snr.py index 6dcb812..cffbbe2 100644 --- a/fg21sim/galactic/snr.py +++ b/fg21sim/galactic/snr.py @@ -244,8 +244,8 @@ class SuperNovaRemnants: """ freq_ref = self.catalog_flux_freq # [ MHz ] Fnu = flux * (frequency / freq_ref) ** (-specindex) # [ Jy ] - omega = size[0] * size[1] # [ deg^2 ] - pixelarea = (self.sky.pixelsize * AUC.arcsec2deg) ** 2 # [ deg^2 ] + omega = size[0] * size[1] * AUC.arcsec2deg**2 # [ arcsec^2 ] + pixelarea = self.sky.pixelsize ** 2 # [ arcsec^2 ] if omega < pixelarea: # The object is smaller than a pixel, so round up to a pixel area omega = pixelarea |