to_header

grizli.utils.to_header(wcs, add_naxis=True, relax=True, key=None)[source]

Modify astropy.wcs.WCS.to_header to produce more keywords

Parameters
wcsWCS

Input WCS.

add_naxisbool

Add NAXIS keywords from WCS dimensions

relaxbool

Passed to WCS.to_header(relax=).

keystr

See to_header.

Returns
headerHeader

Output header.