ExtensionKey#

class lsst.images.fits.ExtensionKey(name='', ver=1)#

Bases: object

The identifiers for a single FITS extension HDU within a file.

Parameters:
  • name (str, default: '')

  • ver (int, default: 1)

Attributes Summary

name

Value of the EXTNAME keyword, or an empty string for the primary HDU.

ver

Value of the EXTVER keyword (which may be absent if it is 1).

Methods Summary

check()

from_index_row(row)

Construct from a row of the index binary table appended to the FITS files written by the package.

from_str(source)

Construct from the str coercion of this type, which is used as the 'source' field in various Pydantic models that serve as references to other HDUs.

Attributes Documentation

name: str = ''#

Value of the EXTNAME keyword, or an empty string for the primary HDU.

ver: int = 1#

Value of the EXTVER keyword (which may be absent if it is 1).

Methods Documentation

check()#
Return type:

None

classmethod from_index_row(row)#

Construct from a row of the index binary table appended to the FITS files written by the package.

Parameters:

row (ndarray) – Structured-array row with EXTNAME and EXTVER fields.

Return type:

ExtensionKey

classmethod from_str(source)#

Construct from the str coercion of this type, which is used as the ‘source’ field in various Pydantic models that serve as references to other HDUs.

Parameters:

source (str) – fits:<extname>[,<extver>] reference string, as produced by str(self).

Return type:

ExtensionKey

This page was last modified on .