cwitools.reduction.rotate

cwitools.reduction.rotate(wcs, theta)

Rotate WCS coordinates to new orientation given by theta.

Analog to astropy.wcs.WCS.rotateCD, which is deprecated since version 1.3 (see https://github.com/astropy/astropy/issues/5175).

Args:
wcs (astropy.wcs.WCS): The input WCS to be rotated theta (float): The rotation angle, in degrees.
Returns:
astropy.wcs.WCS: The rotated WCS