bundles / astropy 7.0.1 / astropy / io / fits / header / Header / append
function
astropy.io.fits.header:Header.append
source: /astropy/io/fits/header.py :1090
Signature
def append ( self , card = None , useblanks = True , bottom = False , end = False ) Summary
Appends a new keyword+value card to the end of the Header, similar to list.append.
Extended Summary
By default if the last cards in the Header have commentary keywords, this will append the new keyword before the commentary (unless the new keyword is also commentary).
Also differs from list.append in that it can be called with no arguments: In this case a blank card is appended to the end of the Header. In the case all the keyword arguments are ignored.
Parameters
card: str, tupleA keyword or a (keyword, value, [comment]) tuple representing a single header card; the comment is optional in which case a 2-tuple may be used
useblanks: bool, optionalIf there are blank cards at the end of the Header, replace the first blank card so that the total number of cards in the Header does not increase. Otherwise preserve the number of blank cards.
bottom: bool, optionalIf True, instead of appending after the last non-commentary card, append after the last non-blank card.
end: bool, optionalIf True, ignore the useblanks and bottom options, and append at the very end of the Header.
Aliases
-
astropy.io.fits.Header.append