aboutsummaryrefslogtreecommitdiffstats
path: root/astro/ps2d.py
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-11-25 17:12:48 +0800
committerAaron LI <aly@aaronly.me>2017-11-25 17:12:48 +0800
commit71c183da0193040bd89ea6be1f52666ddbda5425 (patch)
treea6e65eba32b6a8c98dadb8f12cf4fc1885ec9064 /astro/ps2d.py
parent8a351c1a0bd413dd055b7529e97fe4e7ca2654c3 (diff)
downloadatoolbox-71c183da0193040bd89ea6be1f52666ddbda5425.tar.bz2
Add astro/eor_window.py: Calc total power within the defined EoR window
Diffstat (limited to 'astro/ps2d.py')
-rwxr-xr-xastro/ps2d.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/astro/ps2d.py b/astro/ps2d.py
index 718b59a..0bd0ac4 100755
--- a/astro/ps2d.py
+++ b/astro/ps2d.py
@@ -339,9 +339,8 @@ class PS2D:
Reference: Ref.[liu2014].Eq.(A9)
"""
dfreq = self.dfreq # [MHz]
- c = ac.c.si.value # [m/s]
- Ez = cosmo.efunc(self.zc)
- Hz = Ez * H0 * 1000.0 # [m/s/Mpc]
+ c = ac.c.to("km/s").value # [km/s]
+ Hz = cosmo.H(self.zc).value # [km/s/Mpc]
d_z = c * (1+self.zc)**2 * dfreq / Hz / freq21cm
return d_z