mGetHdr Function Call

Function Arguments

/*-***********************************************************************/
/*                                                                       */
/*  mGetHdr                                                              */
/*                                                                       */
/*  This program extracts the FITS header from an image into a text file */
/*                                                                       */
/*   char  *infile         Input FITS file                               */
/*   int    hdu            Optional HDU offset for input file            */
/*   char  *hdrfile        ASCII header stripped from the input, with    */
/*                         newlines added for readability                */
/*                                                                       */
/*   int    htmlMode       Write output as an HTML file                  */
/*   int    debug          Debugging output level                        */
/*                                                                       */
/*************************************************************************/

struct mGetHdrReturn *mGetHdr(char *infile, int hdu, char *hdrfile, int htmlMode, int debug)

Return Structure

struct mGetHdrReturn
{
   int    status;        // Return status (0: OK, 1:ERROR)
   char   msg [1024];    // Return message (for error return)
   char   json[4096];    // Return parameters as JSON string
   int    ncard;         // Number of lines in the header.
};