aboutsummaryrefslogtreecommitdiffstats
path: root/astro/oskar
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-11-22 22:24:40 +0800
committerAaron LI <aly@aaronly.me>2017-11-22 22:24:40 +0800
commit7c5cf5a4df1e01218b1e6d9d2349e8485c7ebf17 (patch)
treef92e099195e16e3429a66240fed1ecc68b87e344 /astro/oskar
parent7f2c4e55d04ba56e304d7aeca47a84c4aecb260d (diff)
downloadatoolbox-7c5cf5a4df1e01218b1e6d9d2349e8485c7ebf17.tar.bz2
astro/fits2skymodel.py: Take absolute values (21 cm signal absorption)
Diffstat (limited to 'astro/oskar')
-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")