lsst.meas.algorithms  22.0.1-16-g996ca242+56fec35c03
Public Member Functions | Public Attributes | List of all members
lsst.meas.algorithms.stamps.StampsBase Class Reference
Inheritance diagram for lsst.meas.algorithms.stamps.StampsBase:
lsst.meas.algorithms.stamps.Stamps lsst.meas.algorithms.brightStarStamps.BrightStarStamps

Public Member Functions

def __init__ (self, stamps, metadata=None, use_mask=True, use_variance=True, use_archive=False)
 
def readFits (cls, filename)
 
def readFitsWithOptions (cls, filename, options)
 
def writeFits (self, filename)
 
def __len__ (self)
 
def __getitem__ (self, index)
 
def __iter__ (self)
 
def getMaskedImages (self)
 
def getArchiveElements (self)
 
def metadata (self)
 

Public Attributes

 use_mask
 
 use_variance
 
 use_archive
 

Detailed Description

Collection of  stamps and associated metadata.

Parameters
----------
stamps : iterable
    This should be an iterable of dataclass objects
    a la ``lsst.meas.algorithms.Stamp``.
metadata : `lsst.daf.base.PropertyList`, optional
    Metadata associated with the objects within the stamps.
use_mask : `bool`, optional
    If ``True`` read and write the mask data.  Default ``True``.
use_variance : `bool`, optional
    If ``True`` read and write the variance data. Default ``True``.
use_archive : `bool`, optional
    If ``True``, read and write an Archive that contains a Persistable
    associated with each stamp, for example a Transform or a WCS.
    Default ``False``.

Notes
-----
A butler can be used to read only a part of the stamps,
specified by a bbox:

>>> starSubregions = butler.get("brightStarStamps", dataId, parameters={'bbox': bbox})

Definition at line 271 of file stamps.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.meas.algorithms.stamps.StampsBase.__init__ (   self,
  stamps,
  metadata = None,
  use_mask = True,
  use_variance = True,
  use_archive = False 
)

Definition at line 298 of file stamps.py.

Member Function Documentation

◆ __getitem__()

def lsst.meas.algorithms.stamps.StampsBase.__getitem__ (   self,
  index 
)

Definition at line 379 of file stamps.py.

◆ __iter__()

def lsst.meas.algorithms.stamps.StampsBase.__iter__ (   self)

Definition at line 382 of file stamps.py.

◆ __len__()

def lsst.meas.algorithms.stamps.StampsBase.__len__ (   self)

Definition at line 376 of file stamps.py.

◆ getArchiveElements()

def lsst.meas.algorithms.stamps.StampsBase.getArchiveElements (   self)
Retrieve archive elements associated with each stamp.

Returns
-------
archiveElements :
    `list` [`lsst.afwTable.io.Persistable`]

Definition at line 395 of file stamps.py.

◆ getMaskedImages()

def lsst.meas.algorithms.stamps.StampsBase.getMaskedImages (   self)
Retrieve star images.

Returns
-------
maskedImages :
    `list` [`lsst.afw.image.maskedImage.maskedImage.MaskedImageF`]

Definition at line 385 of file stamps.py.

◆ metadata()

def lsst.meas.algorithms.stamps.StampsBase.metadata (   self)

Definition at line 406 of file stamps.py.

◆ readFits()

def lsst.meas.algorithms.stamps.StampsBase.readFits (   cls,
  filename 
)
Build an instance of this class from a file.

Parameters
----------
filename : `str`
    Name of the file to read

Reimplemented in lsst.meas.algorithms.stamps.Stamps, and lsst.meas.algorithms.brightStarStamps.BrightStarStamps.

Definition at line 313 of file stamps.py.

◆ readFitsWithOptions()

def lsst.meas.algorithms.stamps.StampsBase.readFitsWithOptions (   cls,
  filename,
  options 
)
Build an instance of this class with options.

Parameters
----------
filename : `str`
    Name of the file to read
options : `PropertyList`
    Collection of metadata parameters

Reimplemented in lsst.meas.algorithms.stamps.Stamps, and lsst.meas.algorithms.brightStarStamps.BrightStarStamps.

Definition at line 325 of file stamps.py.

◆ writeFits()

def lsst.meas.algorithms.stamps.StampsBase.writeFits (   self,
  filename 
)
Write this object to a file.

Parameters
----------
filename : `str`
    Name of file to write

Definition at line 363 of file stamps.py.

Member Data Documentation

◆ use_archive

lsst.meas.algorithms.stamps.StampsBase.use_archive

Definition at line 310 of file stamps.py.

◆ use_mask

lsst.meas.algorithms.stamps.StampsBase.use_mask

Definition at line 308 of file stamps.py.

◆ use_variance

lsst.meas.algorithms.stamps.StampsBase.use_variance

Definition at line 309 of file stamps.py.


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