ACTCollaboration / actsims

Simulations of the microwave sky as seen by ACT and Planck.
9 stars 4 forks source link

CMB cutouts are not exact same size as act maps #7

Closed ajvanengelen closed 6 years ago

ajvanengelen commented 6 years ago

Due to the way that CMB cutouts are taken, the CMB sims and the ACT maps are not exactly the same size -- there are differences of a couple of pixels in each direction.

We can use 'slices' with numpy tools, however (a) this gives a different WCS and (b) this does not currently work for maps that straddle the meridian at 180 degrees. Item (a) is probably not so important but item (b) is not currently solved.

A suggestion (from DW and Mat) is to look at upsampling to a given size with enmap's resample_fft routine. Alex is investigating this.

ajvanengelen commented 6 years ago

updated this following DW and Mat's comments. The resizing is done inside resample_fft and should always give same shape output array. The wcs should also be the same.