summaryrefslogtreecommitdiffstats
path: root/calc_coolfunc.py
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2016-06-28 13:08:36 +0800
committerAaron LI <aaronly.me@outlook.com>2016-06-28 13:08:36 +0800
commit74f72e5f8bb756126c3f961edbe920fb2cb39110 (patch)
tree39efad72159f095e632c429e385193bde065fc30 /calc_coolfunc.py
parent42a24715eac465bec8e73a36726589869deed207 (diff)
downloadcexcess-74f72e5f8bb756126c3f961edbe920fb2cb39110.tar.bz2
Change "tprofile" to "t_profile"; Delete "coolfunc.conf"
Diffstat (limited to 'calc_coolfunc.py')
-rwxr-xr-xcalc_coolfunc.py24
1 files changed, 14 insertions, 10 deletions
diff --git a/calc_coolfunc.py b/calc_coolfunc.py
index 6d57319..1ed0063 100755
--- a/calc_coolfunc.py
+++ b/calc_coolfunc.py
@@ -4,22 +4,26 @@
#
# Aaron LI
# Created: 2016-06-19
-# Updated: 2016-06-19
+# Updated: 2016-06-27
+#
+# Change logs:
+# 2016-06-27:
+# * Minor style fixes
+# * Change 'tprofile' to 't_profile'
#
"""
-Calculate the 'cooling function' profile with respect to the
-given 'temperature profile' and the average abundance, redshift,
+Calculate the *cooling function* profile with respect to the
+given *temperature profile* and the average abundance, redshift,
and column density nH, using the XSPEC model 'wabs*apec'.
-Sample config file:
+Sample configuration file:
------------------------------------------------------------
-# Configuration file for `calc_coolfunc.py`
-# Aaron LI
-# 2016-06-19
+## Configuration file for `calc_coolfunc.py`
+## 2016-06-27
# temperature profile fitted & extrapolated by model: [r, T]
-tprofile = tprofile.txt
+t_profile = t_profile.txt
# average abundance (unit: solar)
abundance = 0.5
@@ -85,7 +89,7 @@ dummyrsp 0.01 100.0 4096 linear
model wabs*apec & %(nh)s & 1.0 & %(abundance)s & %(redshift)s & %(apec_norm)s & /*
# input and output files
-set tpro_fn "%(tprofile)s"
+set tpro_fn "%(t_profile)s"
set cf_fn "%(coolfunc)s"
if { [ file exists $cf_fn ] } {
exec rm -fv $cf_fn
@@ -158,7 +162,7 @@ def main():
"prog_name": os.path.basename(sys.argv[0]),
"cur_date": datetime.now().isoformat(),
#
- "tprofile": config["tprofile"],
+ "t_profile": config["t_profile"],
"abundance": config.as_float("abundance"),
"abund_table": config.get("abund_table", "grsa"),
"redshift": redshift,