From 7c5cf5a4df1e01218b1e6d9d2349e8485c7ebf17 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Wed, 22 Nov 2017 22:24:40 +0800 Subject: astro/fits2skymodel.py: Take absolute values (21 cm signal absorption) --- astro/oskar/fits2skymodel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astro/oskar/fits2skymodel.py b/astro/oskar/fits2skymodel.py index 7d0295a..8627324 100755 --- a/astro/oskar/fits2skymodel.py +++ b/astro/oskar/fits2skymodel.py @@ -161,7 +161,7 @@ class SkyModel: flux : source (Stokes I) flux density (Jy) """ if self.mask is None: - self.mask = self.image >= self.minvalue + self.mask = np.abs(self.image) >= self.minvalue logger.info("Use minimum threshold to determine output sky") else: logger.info("Use provided mask to determine output sky") -- cgit v1.2.2