diff options
author | Aaron LI <aly@aaronly.me> | 2017-11-25 17:12:48 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2017-11-25 17:12:48 +0800 |
commit | 71c183da0193040bd89ea6be1f52666ddbda5425 (patch) | |
tree | a6e65eba32b6a8c98dadb8f12cf4fc1885ec9064 /astro/ps2d.py | |
parent | 8a351c1a0bd413dd055b7529e97fe4e7ca2654c3 (diff) | |
download | atoolbox-71c183da0193040bd89ea6be1f52666ddbda5425.tar.bz2 |
Add astro/eor_window.py: Calc total power within the defined EoR window
Diffstat (limited to 'astro/ps2d.py')
-rwxr-xr-x | astro/ps2d.py | 5 |
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 |