copy_header¶
-
mpdaf.tools.
copy_header
(srchdr, dsthdr=None, exclude=(), unit=None)[source]¶ Copy all keywords from a FITS header to another.
- Parameters
- srchdr
astropy.io.fits.Header
Source header
- dsthdr
astropy.io.fits.Header
Destination header, created if needed.
- exclude
list
List of glob patterns to exclude keywords.
- unit
str
orastropy.units.Unit
Unit
- srchdr