Skip to content

Commit

Permalink
make sure high-res map indexing is not nonsense
Browse files Browse the repository at this point in the history
  • Loading branch information
arahlin committed Sep 19, 2023
1 parent 1b9087f commit 07f5175
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions maps/tests/healpix_maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,3 +221,9 @@
lon, lat = maps.azel.convert_radec_to_gal(alpha, delta)
pix = xeq.angles_to_pixels(lon, lat)
assert(np.allclose(np.asarray(pix), np.asarray(xeq)))

# high-res
hx = maps.HealpixSkyMap(16384)
pix1 = hx.angle_to_pixel(0, -45 * core.G3Units.deg)
pix2 = hp.ang2pix(16384, 3 * np.pi / 4, 0)
assert(pix1 == pix2)

0 comments on commit 07f5175

Please sign in to comment.