pygnuastro.fits.img_write¶
- pygnuastro.fits.img_write()¶
Write the input ‘data’ into the FITS file named ‘filename’. Also, add the program’s name(‘program string’) to the newly created HDU/extension.
Args: data (np.array/list): The data array to be written filename (str): Name of the output file with extension program_string (str): Program’s name. Written out to the newly created extension
Returns: bool: True if the image write was successful