bundles / astropy latest / astropy / io / fits / header / Header / index
function
astropy.io.fits.header:Header.index
source: /astropy/io/fits/header.py :1308
Signature
def index ( self , keyword , start = None , stop = None ) Summary
Returns the index if the first instance of the given keyword in the header, similar to list.index if the Header object is treated as a list of keywords.
Parameters
keyword: strThe keyword to look up in the list of all keywords in the header
start: int, optionalThe lower bound for the index
stop: int, optionalThe upper bound for the index
Aliases
-
astropy.io.fits.Header.index