aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-10-31 16:31:41 +0800
committerAaron LI <aly@aaronly.me>2017-10-31 16:31:41 +0800
commita1d4cb4b6d637112aa97249b8150e8236002f09f (patch)
tree16a927c90a230d857270c34cb8fa0d6ac2809107 /bin
parentd1768c0e129b0e51d27277c1ad6608ca1c7246ae (diff)
downloadchandra-acis-analysis-a1d4cb4b6d637112aa97249b8150e8236002f09f.tar.bz2
bin/cosmo_calc.py: Add evolution factor -E/--evolution-factor
Diffstat (limited to 'bin')
-rwxr-xr-xbin/cosmo_calc.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/cosmo_calc.py b/bin/cosmo_calc.py
index 3b7a71f..24e9cfa 100755
--- a/bin/cosmo_calc.py
+++ b/bin/cosmo_calc.py
@@ -48,6 +48,11 @@ QUANTITIES = OrderedDict([
"label": "norm (APEC)",
"kwargs": ["z"],
}),
+ ("evolution_factor", {
+ "unit": None,
+ "label": "Evolution factor",
+ "kwargs": ["z"],
+ }),
])
@@ -95,6 +100,10 @@ def main():
help="be brief")
parser.add_argument("-u", "--unit", dest="unit",
help="set the unit for output quantity if supported")
+ parser.add_argument("-E", "--evolution-factor",
+ dest="evolution_factor",
+ action="store_true",
+ help="calculate the redshift evolution factor E(z)")
parser.add_argument("-L", "--luminosity-distance",
dest="luminosity_distance",
action="store_true",