From 79f878f1c578eb4c85563a6f36170e6527f71b3b Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Mon, 20 Feb 2017 09:15:35 +0800 Subject: Add scripts/cosmo_calc.py * This 'cosmo_calc.py' replaces the original C++ version 'cosmo_calc' * Also fix a issue in 'acispy/cosmo.py' --- acispy/cosmo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'acispy') 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. -- cgit v1.2.2