ExternalMetadata#

class lsst.images.serialization.ExternalMetadata#

Bases: Mapping[str, ExternalMetadataValue]

Read-only access to metadata that was carried in from an external source, such as the primary header of a FITS file, and is not part of the data model.

Notes

Lookups and membership tests are case-insensitive. Iteration yields each key once, in the form the underlying source reports it. When a key is repeated in the source, which of its values [] returns is unspecified; use get_all to obtain every value.

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.#
abstract 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 .