Fast way to convolve a non-centered gaussian with a healpy map?

73 Views Asked by At

I have a healpix map (nside=256) and I am trying to convolve it with a gaussian, which is not centered, this is, simulating an offset in the 'telescope pointing'. Is there an easy way of doing this?

I know `healpy.smoothing' works for usual gaussians, but have not been able to find anything for this case.

1

There are 1 best solutions below

2
Andrea Zonca On BEST ANSWER

What if you convolve the map with hp.smoothing and now you have a uniformly smoothed map.

Then when you observe it to turn it into a timestream, you add an offset to your pointing, so instead of picking the "right" pixel, you pick instead one of the nearby pixels.

So let's say you have theta and phi and pointing errors dtheta and dphi, you do:

pix = hp.ang2pix(256, theta+dtheta, phi+dphi)