Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Fejer1 variant of CAR pixelization #157

Merged
merged 5 commits into from
Mar 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion pysm3/models/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,9 @@ def apply_smoothing_and_coord_transform(
output_maps.append(hp.alm2map(alm, nside=output_nside, pixwin=False) * unit)
if return_car:
shape, wcs = pixell.enmap.fullsky_geometry(
output_car_resol.to_value(u.radian), dims=(3,)
output_car_resol.to_value(u.radian),
dims=(3,),
variant="fejer1",
)
ainfo = pixell.sharp.alm_info(lmax=lmax)
output_maps.append(
Expand Down
6 changes: 4 additions & 2 deletions pysm3/tests/test_smoothing.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@ def test_car_nosmoothing(input_map):
output_car_resol=CAR_RESOL,
lmax=LMAX,
)
assert car_map.shape == (3, 901, 1800)
shape, wcs = pixell.enmap.fullsky_geometry(CAR_RESOL.to_value(u.radian), dims=(3,))
assert car_map.shape == (3, 900, 1800)
shape, wcs = pixell.enmap.fullsky_geometry(
CAR_RESOL.to_value(u.radian), dims=(3,), variant="fejer1"
)
map_rep = (
pixell.reproject.enmap_from_healpix(
input_map, shape, wcs, lmax=LMAX, rot=None, ncomp=3
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ test =
pytest
psutil
tox
pixell
pixell >= 0.17.3
mpi =
mpi4py
docs =
Expand Down