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, history : bool

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

drizzle_keys : list

Strip keys produced by astrodrizzle.

usewcs : bool

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

keep_with_wcs : list

Additional keys to try to add to the usewcs header.

Returns:
header : Header

Header object.