lsst.meas.algorithms g8d527e0710+370e541a70
Public Member Functions | List of all members
lsst.meas.algorithms.stamps.AbstractStamp Class Reference
Inheritance diagram for lsst.meas.algorithms.stamps.AbstractStamp:
lsst.meas.algorithms.brightStarStamps.BrightStarStamp lsst.meas.algorithms.stamps.Stamp

Public Member Functions

def factory (cls, stamp_im, metadata, index, archive_element=None)
 

Detailed Description

Single abstract stamp

Parameters
----------
Inherit from this class to add metadata to the stamp

Definition at line 181 of file stamps.py.

Member Function Documentation

◆ factory()

def lsst.meas.algorithms.stamps.AbstractStamp.factory (   cls,
  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.

Parameters
----------
stamp : `lsst.afw.image.MaskedImage`
    Pixel data to pass to the constructor
metadata : `dict`
    Dictionary containing the information
    needed by the constructor.
idx : `int`
    Index into the lists in ``metadata``
archive_element : `lsst.afwTable.io.Persistable`, optional
    Archive element (e.g. Transform or WCS) associated with this stamp.

Returns
-------
stamp : `AbstractStamp`
    An instance of this class

Reimplemented in lsst.meas.algorithms.brightStarStamps.BrightStarStamp, and lsst.meas.algorithms.stamps.Stamp.

Definition at line 191 of file stamps.py.


The documentation for this class was generated from the following file: