healpy.rotator.Rotator.rotate_map

Rotator.rotate_map(m)

Rotate a HEALPix map to a new reference frame

This function first rotates the pixels centers of the new reference frame to the original reference frame, then uses hp.get_interp_val to interpolate bilinearly the pixel values, finally fixes Q and U polarization by the modification to the psi angle caused by the Rotator using Rotator.angle_ref.

Parameters:
m : np.ndarray

Input map, 1 map is considered I, 2 maps:[Q,U], 3 maps:[I,Q,U]

Returns:
m_rotated : np.ndarray

Map in the new reference frame