scopesim.optics.image_plane_utils.reorient_imagehdu# scopesim.optics.image_plane_utils.reorient_imagehdu(imagehdu: ImageHDU, wcs_suffix: str = '', conserve_flux: bool = True, spline_order: int = 1) → ImageHDU# Apply an affine transformation to the image, as given in its header. Parameters: imagehdu (fits.ImageHDU) wcs_suffix (str) conserve_flux (bool) spline_order (int) – [1..5] Order of the spline interpolation used by scipy.ndimage.rotate Returns: imagehdu Return type: fits.ImageHDU