aboutsummaryrefslogtreecommitdiffstats
path: root/astro
diff options
context:
space:
mode:
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: