mHdrCheck

Description:
mHdrCheck reads in the header from a FITS image (or an ASCII header template file) and checks to see if any header lines are invalid. If it finds one, it will print out a message stating which keyword is invalid and exit before checking the rest of the header. It will not report on multiple invalid values. If all value are correct, mHdrCheck will print out a "Valid FITS/WCS" message.
Syntax:
mHdrCheck [-s statusfile] img.fits

Switches:

-s statusfile
Output and errors are sent to statusfile instead of to stdout

Arguments:

img.fits
Path of FITS file to be validated.

Examples:

$ mHdrCheck input/badfits/bad-crota2.fits
[struct stat="ERROR", msg="CROTA2 keyword in FITS header not a real number"]
$ mHdrCheck input/2mass.fits
[struct stat="OK", msg="Valid FITS/WCS."]
$ mHdrCheck input/badfits/bad-ctype.fits
[struct stat="ERROR", msg="Invalid projection"]

Return Codes: