FitsExternalMetadata#

final class lsst.images.fits.FitsExternalMetadata(header)#

Bases: ExternalMetadata

Read-only, by-keyword access to the values in a FITS header.

Parameters:

header (Header | None) – Header to read. It is held by reference, so later changes to it are seen. None is equivalent to an empty header.

Notes

COMMENT, HISTORY, and blank-keyword cards are not visible. Keywords are reported in upper case, with HIERARCH keywords lacking the HIERARCH prefix (e.g. LSST ISR UNITS). Lookups ignore case and accept an optional HIERARCH prefix. Cards with no value are reported as None.

Methods Summary

get(k[,d])

get_all(key)

Return every value for a key, in source order.

items()

keys()

values()

Methods Documentation

get(k[, d]) → D[k] if k in D, else d.  d defaults to None.#
get_all(key)#

Return every value for a key, in source order.

Parameters:

key (str) – Key to look up (case-insensitive).

Returns:

values – All values for key.

Return type:

tuple

Raises:

KeyError – Raised if key is not present.

items() → a set-like object providing a view on D's items#
keys() → a set-like object providing a view on D's keys#
values() → an object providing a view on D's values#

This page was last modified on .