diff options
author | Aaron LI <aly@aaronly.me> | 2017-11-22 22:24:40 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2017-11-22 22:24:40 +0800 |
commit | 7c5cf5a4df1e01218b1e6d9d2349e8485c7ebf17 (patch) | |
tree | f92e099195e16e3429a66240fed1ecc68b87e344 /astro | |
parent | 7f2c4e55d04ba56e304d7aeca47a84c4aecb260d (diff) | |
download | atoolbox-7c5cf5a4df1e01218b1e6d9d2349e8485c7ebf17.tar.bz2 |
astro/fits2skymodel.py: Take absolute values (21 cm signal absorption)
Diffstat (limited to 'astro')
-rwxr-xr-x | astro/oskar/fits2skymodel.py | 2 |
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") |