bundles / astropy 7.0.1 / astropy / io / fits / header / Header / rename_keyword
function
astropy.io.fits.header:Header.rename_keyword
source: /astropy/io/fits/header.py :1479
Signature
def rename_keyword ( self , oldkeyword , newkeyword , force = False ) Summary
Rename a card's keyword in the header.
Parameters
oldkeyword: str or intOld keyword or card index
newkeyword: strNew keyword
force: bool, optionalWhen
True, if the new keyword already exists in the header, force the creation of a duplicate keyword. Otherwise aValueErroris raised.
Aliases
-
astropy.io.fits.Header.rename_keyword