Modify astropy.wcs.WCS.to_header to produce more keywords
astropy.wcs.WCS.to_header
WCS
Input WCS.
Add NAXIS keywords from WCS dimensions
Passed to WCS.to_header(relax=).
WCS.to_header(relax=)
See to_header.
to_header
Header
Output header.
to_header()