diff options
author | Aaron LI <aly@aaronly.me> | 2017-12-03 19:47:47 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2017-12-03 19:47:47 +0800 |
commit | df238cb5cb76356315ec5478ff67748121d491bf (patch) | |
tree | c59923d3ec1801b157ec5113331ea83007e3cba7 /astro | |
parent | 0de03cc656ecaaa696a81ac9738d268d922eaf55 (diff) | |
download | atoolbox-df238cb5cb76356315ec5478ff67748121d491bf.tar.bz2 |
minor updates
Diffstat (limited to 'astro')
-rwxr-xr-x | astro/eor_window.py | 3 | ||||
-rwxr-xr-x | astro/oskar/fits2skymodel.py | 2 |
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: |