aboutsummaryrefslogtreecommitdiffstats
path: root/astro/eor_window.py
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-12-06 10:14:46 +0800
committerAaron LI <aly@aaronly.me>2017-12-06 10:14:46 +0800
commitff65262fad66900097c9e4af53027381cda5ad02 (patch)
treec7fd56316f810eda06c457c02a501fe4d1797502 /astro/eor_window.py
parent84e43886b4ff16f17cac3d06f0d5d44d6aa0eacb (diff)
downloadatoolbox-ff65262fad66900097c9e4af53027381cda5ad02.tar.bz2
astro/ps2d.py: Use 1.4826*MAD to replace 68% percentile range
Also save the averaging cell numbers in the output FITS file, therefore the output file format is CHANGED!
Diffstat (limited to 'astro/eor_window.py')
-rwxr-xr-xastro/eor_window.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/astro/eor_window.py b/astro/eor_window.py
index 2a557c9..71f4cc2 100755
--- a/astro/eor_window.py
+++ b/astro/eor_window.py
@@ -80,7 +80,7 @@ class PS2D:
with fits.open(infile) as f:
self.header = f[0].header
self.ps2d = f[0].data[0, :, :]
- self.ps2d_err = (f[0].data[1, :, :] + f[0].data[2, :, :]) / 2
+ self.ps2d_err = f[0].data[1, :, :]
self.freqc = self.header["Freq_C"]
self.freqmin = self.header["Freq_Min"]
self.freqmax = self.header["Freq_Max"]