Header
- class sherpa.astro.io.types.Header(values: list[HeaderItem])[source] [edit on github]
Bases:
object
Represent multiple FITS header cards.
This does not support all FITS features.
Attributes Summary
The stored header items.
Methods Summary
add
(item)Add the item (not checking for duplicates).
delete
(name)Remove the first occurrence of the key, if it exists (case insensitive).
get
(name)Return the first occurrence of the key (case insensitive).
Attributes Documentation
- values: list[HeaderItem]
The stored header items.
Methods Documentation
- add(item: HeaderItem) None [source] [edit on github]
Add the item (not checking for duplicates).
- delete(name: str) HeaderItem | None [source] [edit on github]
Remove the first occurrence of the key, if it exists (case insensitive).
- get(name: str) HeaderItem | None [source] [edit on github]
Return the first occurrence of the key (case insensitive).