aboutsummaryrefslogtreecommitdiffstats
path: root/astro
diff options
context:
space:
mode:
Diffstat (limited to 'astro')
-rwxr-xr-xastro/oskar/fits2skymodel.py2
1 files changed, 1 insertions, 1 deletions
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")