galsci / mapsims

Map based simulations software for CMB Experiments
BSD 2-Clause "Simplified" License
3 stars 1 forks source link

Healpix and CAR hitmaps are not equivalent #38

Closed msyriac closed 4 years ago

msyriac commented 4 years ago

There are two bugs in the CAR implementation that cause the effective sky fraction for CAR to be different from that in the healpix implementation, thus causing them to pull different noise curves from the SO noise model. The bugs are:

  1. The default sky fraction calculation assumes equal area pixels. For CAR, one can switch this to a calculation that sums over a map of the pixel areas in the unmasked region.
  2. When converting an existing CAR hitmap to a different geometry, it uses enmap.project which by default uses order=3 interpolation. This should be switched to order=0 (which is what the original healpix -> CAR and a healpy.ud_grade operation does).