Save nd array as .FITS Oct 27, 2021 • Anders Kaestner Fits is a popular file format to save images from neutron imaging detectors. The module astropy provides functions to save fits files with your data. from astropy.io import fits fits.writeto('out.fits', x.astype('float'))