def write_datacube(datacube, header, path):
"""
This function ...
:param datacube:
:param header:
:param path:
:return:
"""
# Create the HDU from the data array and the header
hdu = fits.PrimaryHDU(np.array(datacube), header)
# Write the HDU to a FITS file
hdu.writeto(path, clobber=True)
# Inform the user that the file has been created
log.debug("File " + path + " created")
# -----------------------------------------------------------------
评论列表
文章目录