lsst.meas.algorithms  21.0.0-6-g2b8c1f54+e7fb5877da
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)
 

Detailed Description

Single abstract stamp

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

Definition at line 143 of file stamps.py.

Member Function Documentation

◆ factory()

def lsst.meas.algorithms.stamps.AbstractStamp.factory (   cls,
  stamp_im,
  metadata,
  index 
)
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``

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

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

Definition at line 153 of file stamps.py.


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