validate

astropy.wcs.validate(source)[source]

Prints a WCS validation report for the given FITS file.

Parameters
sourcestr path, readable file-like object or astropy.io.fits.HDUList object

The FITS file to validate.

Returns
resultsWcsValidateResults instance

The result is returned as nested lists. The first level corresponds to the HDUs in the given file. The next level has an entry for each WCS found in that header. The special subclass of list will pretty-print the results as a table when printed.