Skip to content

Commit 4e93ccd

Browse files
separated noise and beam effect
1 parent 427b8c1 commit 4e93ccd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

deepcmbsim/noise.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ def max_multipole(beamfwhm_arcmin, additional_factor=3):
2626
"""
2727
return 180 * 60 * additional_factor / beamfwhm_arcmin
2828

29+
def beam_effect(beamfwhm_arcmin, lmax):
30+
ells = np.arange(lmax + 1)
31+
return np.exp(ells * (ells + 1) * (beamfwhm_arcmin * arcmin_to_rad)**2 / (8 * np.log(2)))
32+
2933
def detector_white_noise(noise_uKarcmin, beamfwhm_arcmin, lmax, TT=True, units_uK = True):
3034
"""
3135
describes white (no angular scale) noise from a detector
@@ -54,4 +58,4 @@ def detector_white_noise(noise_uKarcmin, beamfwhm_arcmin, lmax, TT=True, units_u
5458
noise_uKarcmin = noise_uKarcmin if TT else noise_uKarcmin * np.sqrt(2)
5559
noise_uKarcmin = noise_uKarcmin if units_uK else noise_uKarcmin / 2.72548e6
5660
ells = np.arange(lmax+1)
57-
return (noise_uKarcmin * arcmin_to_rad) ** 2 * np.exp(ells * (ells + 1) * (beamfwhm_arcmin * arcmin_to_rad) ** 2 / (8 * np.log(2)))
61+
return (noise_uKarcmin * arcmin_to_rad) ** 2

0 commit comments

Comments
 (0)