Skip to content

Commit

Permalink
Fix for sim CMB map
Browse files Browse the repository at this point in the history
Daft Bell vs. Bell^2 bug
  • Loading branch information
mattyowl committed Dec 7, 2023
1 parent e6fe236 commit 87a0fb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nemo/maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -1126,7 +1126,7 @@ def simCMBMap(shape, wcs, noiseLevel = None, beam = None, seed = None):
beam=signals.BeamProfile(beamFileName = beam)
assert(type(beam) == signals.BeamProfile)
lbeam=np.interp(lps, beam.ell, beam.Bell)
ps*=lbeam
ps*=np.power(lbeam, 2)

randMap=curvedsky.rand_map(shape, wcs.AWCS, ps = ps, spin = [0,2], seed = seed)

Expand Down

0 comments on commit 87a0fb2

Please sign in to comment.