astropy 5.0

ParametersReturns
get(self, key, default=None)

Parameters

key : str

A keyword that may or may not be in the header.

default : optional

A default value to return if the keyword is not found in the header.

Returns

value: str, number, complex, bool, or ``astropy.io.fits.card.Undefined``

The value associated with the given keyword, or the default value if the keyword is not in the header.

Similar to dict.get --returns the value associated with keyword in the header, or a default value if the keyword is not found.

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /astropy/io/fits/header.py#882
type: <class 'function'>
Commit: