bundles / astropy latest / astropy / io / fits / header / Header / fromkeys
classmethod
astropy.io.fits.header:Header.fromkeys
source: /astropy/io/fits/header.py :836
Summary
Similar to dict.fromkeys--creates a new Header from an iterable of keywords and an optional default value.
Extended Summary
This method is not likely to be particularly useful for creating real world FITS headers, but it is useful for testing.
Parameters
iterableAny iterable that returns strings representing FITS keywords.
value: optionalA default value to assign to each keyword; must be a valid type for FITS keywords.
Returns
: `Header`A new Header instance.
Aliases
-
astropy.io.fits.Header.fromkeys