Skip to content

Commit

Permalink
Normalise beam tform to 1 if not already
Browse files Browse the repository at this point in the history
Apparently some of the beam tform files aren't normalised to 1
by default.
  • Loading branch information
mattyowl committed Dec 5, 2023
1 parent 8734468 commit e6fe236
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nemo/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ def __init__(self, beamFileName = None, profile1d = None, rDeg = None):
Bell=beamData[1]
if len(np.unique(np.diff(ell))) != 1:
raise Exception("If using a beam transform file, need delta ell = 1 between all ell values.")
Bell=Bell/Bell[0]
rDeg=np.linspace(0.0, 0.5, 1800) # This may need adjusting
prof=curvedsky.harm2profile(Bell, np.radians(rDeg))
prof=prof/prof[0]
Expand Down

0 comments on commit e6fe236

Please sign in to comment.