sanitize_image

pywwt.utils.sanitize_image(image, output_file, overwrite=False, hdu_index=None, **kwargs)[source]

Transform a FITS image so that it is in equatorial coordinates with a TAN projection and floating-point values, all of which are required to work correctly in WWT at the moment.

Image can be a filename, an HDU, or a tuple of (array, WCS).