aboutsummaryrefslogtreecommitdiffstats
path: root/astro/calc_psd.py
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-11-04 20:39:52 +0800
committerAaron LI <aly@aaronly.me>2017-11-04 20:39:52 +0800
commit30dad264ec305433dd661834addbb1e8b1345af8 (patch)
treee1223a4c2c969422264ba52773d3ca6291d7f2f6 /astro/calc_psd.py
parent61eedee622e2f765ea14496d0158b4fed9be03be (diff)
downloadatoolbox-30dad264ec305433dd661834addbb1e8b1345af8.tar.bz2
Fix the wrong use of IQR (interquartile range)
Diffstat (limited to 'astro/calc_psd.py')
-rwxr-xr-xastro/calc_psd.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/astro/calc_psd.py b/astro/calc_psd.py
index 1b9fea8..2b57fc9 100755
--- a/astro/calc_psd.py
+++ b/astro/calc_psd.py
@@ -49,7 +49,7 @@ class PSD:
be used to do the azimuthal averages. Otherwise, a evenly
pixel-by-pixel (along radial direction) is adopted.
meanstd : bool, optional
- By default, the median and 16% and 84% percentiles (i.e., 68% IQR)
+ By default, the median and 16% and 84% percentiles (i.e., 68% error)
will be calculated for each averaged annulus. If this option is
``True`` then calculate the mean and standard deviation instead.
"""
@@ -251,7 +251,7 @@ class PSD:
labelerr = "standard deviation"
else:
label = "median"
- labelerr = "68% IQR"
+ labelerr = "68% percentile range"
yerr = np.row_stack((self.psd1d_errl, self.psd1d_erru))
ax.errorbar(freqs, self.psd1d, yerr=yerr,
fmt="none", label=labelerr)
@@ -343,7 +343,7 @@ def main():
action="store_true",
help="calculate the mean and standard deviation " +
"for each averaged annulus instead of the median " +
- "16%% and 84%% percentiles (i.e., 68%% IQR)")
+ "16%% and 84%% percentiles (i.e., 68%% error)")
parser.add_argument("-P", "--plot", dest="plot", action="store_true",
help="plot the PSD and save as a PNG image")
parser.add_argument("-i", "--infile", dest="infile", nargs="+",