Stamp

class lsst.meas.algorithms.Stamp(stamp_im: MaskedImageF, archive_element: Persistable | None = None, position: SpherePoint | None = SpherePoint(nan * degrees, nan * degrees))

Bases: AbstractStamp

Single stamp.

Parameters:
stamp_imMaskedImageF

The actual pixel values for the postage stamp.

archive_elementPersistable or None, optional

Archive element (e.g. Transform or WCS) associated with this stamp.

positionSpherePoint or None, optional

Position of the center of the stamp. Note the user must keep track of the coordinate system.

Attributes Summary

archive_element

position

Methods Summary

factory(stamp_im, metadata, index[, ...])

This method is needed to service the FITS reader.

Attributes Documentation

archive_element: Persistable | None = None
position: SpherePoint | None = SpherePoint(nan*degrees, nan*degrees)

Methods Documentation

classmethod factory(stamp_im, metadata, index, archive_element=None)

This method is needed to service the FITS reader. We need a standard interface to construct objects like this. Parameters needed to construct this object are passed in via a metadata dictionary and then passed to the constructor of this class. If lists of values are passed with the following keys, they will be passed to the constructor, otherwise dummy values will be passed: RA_DEG, DEC_DEG. They should each point to lists of values.

Parameters:
stampMaskedImage

Pixel data to pass to the constructor

metadatadict

Dictionary containing the information needed by the constructor.

idxint

Index into the lists in metadata

archive_elementPersistable, optional

Archive element (e.g. Transform or WCS) associated with this stamp.

Returns:
stampStamp

An instance of this class