aboutsummaryrefslogtreecommitdiffstats
path: root/astro
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-12-03 19:47:47 +0800
committerAaron LI <aly@aaronly.me>2017-12-03 19:47:47 +0800
commitdf238cb5cb76356315ec5478ff67748121d491bf (patch)
treec59923d3ec1801b157ec5113331ea83007e3cba7 /astro
parent0de03cc656ecaaa696a81ac9738d268d922eaf55 (diff)
downloadatoolbox-df238cb5cb76356315ec5478ff67748121d491bf.tar.bz2
minor updates
Diffstat (limited to 'astro')
-rwxr-xr-xastro/eor_window.py3
-rwxr-xr-xastro/oskar/fits2skymodel.py2
2 files changed, 3 insertions, 2 deletions
diff --git a/astro/eor_window.py b/astro/eor_window.py
index 5d84e1c..d4ac3fa 100755
--- a/astro/eor_window.py
+++ b/astro/eor_window.py
@@ -79,7 +79,8 @@ class PS2D:
self.infile = infile
with fits.open(infile) as f:
self.header = f[0].header
- self.ps2d = f[0].data[0, :, :] # errors ignored
+ self.ps2d = f[0].data[0, :, :]
+ self.ps2d_err = (f[0].data[1, :, :] + f[0].data[2, :, :]) / 2
self.freqc = self.header["Freq_C"]
self.freqmin = self.header["Freq_Min"]
self.freqmax = self.header["Freq_Max"]
diff --git a/astro/oskar/fits2skymodel.py b/astro/oskar/fits2skymodel.py
index e280705..bcbb328 100755
--- a/astro/oskar/fits2skymodel.py
+++ b/astro/oskar/fits2skymodel.py
@@ -39,7 +39,7 @@ from astropy.wcs import WCS
logging.basicConfig(level=logging.INFO,
format="[%(levelname)s:%(lineno)d] %(message)s")
-logger = logging.getLogger(os.path.basename(sys.argv[0]))
+logger = logging.getLogger()
class SkyModel: