strip_header_keys

grizli.utils.strip_header_keys(header, comment=True, history=True, drizzle_keys=['GEOM', 'DATA', 'DEXP', 'OUDA', 'OUWE', 'OUCO', 'MASK', 'WTSC', 'KERN', 'PIXF', 'COEF', 'OUUN', 'FVAL', 'WKEY', 'SCAL', 'ISCL'], usewcs=False, keep_with_wcs=['EXPTIME', 'FILTER', 'TELESCOP', 'INSTRUME', 'DATE-OBS', 'EXPSTART', 'EXPEND'])[source]

Strip header keywords

Parameters
comment, historybool

Strip ‘COMMENT’ and ‘HISTORY’ keywords, respectively.

drizzle_keyslist

Strip keys produced by astrodrizzle.

usewcsbool

Alternatively, just generate a simple WCS-only header from the input header.

keep_with_wcslist

Additional keys to try to add to the usewcs header.

Returns
headerHeader

Header object.