Skip to content

Commit

Permalink
Merge pull request #44 from simonsobs/patch_lmax
Browse files Browse the repository at this point in the history
adjust lmax to not be crazy high
  • Loading branch information
xzackli authored Feb 26, 2022
2 parents 68360ce + c709ff9 commit 0d414bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/transforms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function create_sht_band(m::Enmap)
end

"""Generate an estimate of the Nyquist frequency for a map"""
getlmax(wcs) = 3 * fullringsize(wcs)
getlmax(wcs) = fullringsize(wcs) ÷ 2

"""perform forward SHT of an intensity map"""
function map2alm(input_map::Enmap{T,2}; lmax=nothing, mmax=lmax) where T
Expand Down
2 changes: 1 addition & 1 deletion test/test_transforms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ end
ref_alms = data[:,1] + 1im .* data[:,2]
@test (alms.alm ref_alms)

@test length(map2alm(m).alm) ==5995
@test length(map2alm(m).alm) == 190

alms = map2alm(m[6:end-2, 5:end-3]; lmax=18)
data = readdlm("data/simple_analytic_sht_sliced.txt")
Expand Down

0 comments on commit 0d414bc

Please sign in to comment.