copy_header

mpdaf.tools.copy_header(srchdr, dsthdr=None, exclude=(), unit=None)[source]

Copy all keywords from a FITS header to another.

Parameters
srchdrastropy.io.fits.Header

Source header

dsthdrastropy.io.fits.Header

Destination header, created if needed.

excludelist

List of glob patterns to exclude keywords.

unitstr or astropy.units.Unit

Unit