[AstroPy] Saving Cutout2D image to FITS
thomas.boch at astro.unistra.fr
Tue Mar 13 17:37:09 EDT 2018
the Cutout2D object has attributes /data/ and /wcs/ which can be used to
create an astropy.io.fits.PrimaryHDU instance that can then be written
to a file.
Le 13/03/2018 à 22:27, Ivan Valtchanov a écrit :
> Hi all,
> I've been trying to useastropy.nddata Cutout2D to crop a large image.
> I don't see how to save the cutout result to a FITS file.
> cutout.writeto('image.fits') does not work and in the API I cannot
> find a method in the Cutout2D class that saves the result to a FITS file.
> is there a way to do it?
> Ivan Valtchanov
> AstroPy mailing list
> AstroPy at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the AstroPy