From 7bcebf9daf5157ed249d162a75ff61d60fa98226 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Thu, 3 Aug 2017 22:10:16 +0800 Subject: Update against "Fnu_to_Tb_fast()" unit changes Signed-off-by: Aaron LI --- fg21sim/galactic/snr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fg21sim/galactic') 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 -- cgit v1.2.2