diff options
author | Aaron LI <aaronly.me@outlook.com> | 2017-02-20 09:15:35 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2017-02-20 09:15:35 +0800 |
commit | 79f878f1c578eb4c85563a6f36170e6527f71b3b (patch) | |
tree | 44485f043062b6dbc2dd2abc94f560880802c54d /acispy | |
parent | cdc927778f0c61dcff7e566eec0d038737f8e526 (diff) | |
download | chandra-acis-analysis-79f878f1c578eb4c85563a6f36170e6527f71b3b.tar.bz2 |
Add scripts/cosmo_calc.py
* This 'cosmo_calc.py' replaces the original C++ version 'cosmo_calc'
* Also fix a issue in 'acispy/cosmo.py'
Diffstat (limited to 'acispy')
-rw-r--r-- | acispy/cosmo.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/acispy/cosmo.py b/acispy/cosmo.py index c3d6096..62b9191 100644 --- a/acispy/cosmo.py +++ b/acispy/cosmo.py @@ -57,7 +57,7 @@ class Calculator: 1 ACIS pixel (i.e., 0.492 arcsec) at the *angular diameter distance* of z. """ - return self.kpc_per_pix * au.kpc.to(au.cm) + return self.kpc_per_pix(z) * au.kpc.to(au.cm) def norm_apec(self, z): """ @@ -65,6 +65,7 @@ class Calculator: EM = 1 (i.e., n_e = n_H = 1 cm^-3, and V = 1 cm^3) norm = 1e-14 / (4*pi* (D_A * (1+z))^2) * int(n_e * n_H) dV + unit: [cm^-5] This value will be used to calculate the cooling function values. |