Replaces the header of the input file with one supplied by the user.
in_image : str
Input FITS file.
out_image : str
Path to output FITS file (with new header)
template_header : str
ASCII header template to write into out_image.
debug : bool, optional
Turns on debugging to the specified level (this version only supports level “1”).
status_file : str, optional
Output and errors are sent to status_file instead of to stdout
hdu : int, optional
Write to the specified FITS extnension (HDU).