Function Arguments
/*-***********************************************************************/ /* */ /* mPutHdr */ /* */ /* Montage is a set of general reprojection / coordinate-transform / */ /* mosaicking programs. Any number of input images can be merged into */ /* an output FITS file. The attributes of the input are read from the */ /* input files; the attributes of the output are read a combination of */ /* the command line and a FITS header template file. */ /* */ /* This module, mPutHdr, replaces the header of the input file with */ /* one supplied by the user (presumably a "corrected" version of the */ /* input). Nothing else is changed. The new header is in the form */ /* of a standard Montage template: an ASCII file with the same content */ /* as a FITS header but one card per line and no need to make the lines */ /* 80 characters long (i.e. an easily editable file). */ /* */ /* char *input_file Input FITS file */ /* int hdu Optional HDU offset for input file */ /* */ /* char *output_file Output FITS file */ /* */ /* char *template_file New header to replace that from the input */ /* in the output */ /* */ /* int debug Debugging output level */ /* */ /*************************************************************************/ struct mPutHdrReturn *mPutHdr(char *input_file, int hduin, char *output_file, char *template_file, int debug)
Return Structure
struct mPutHdrReturn { int status; // Return status (0: OK, 1:ERROR) char msg [1024]; // Return message (for error return) char json[4096]; // Return parameters as JSON string };