lsst.meas.algorithms g88c9893f41+8a5c8fccd2
Loading...
Searching...
No Matches
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 279 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 
)

Reimplemented in lsst.meas.algorithms.brightStarStamps.BrightStarStamps.

Definition at line 310 of file stamps.py.

Member Function Documentation

◆ __getitem__()

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

Definition at line 394 of file stamps.py.

◆ __iter__()

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

Definition at line 397 of file stamps.py.

◆ __len__()

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

Definition at line 391 of file stamps.py.

◆ getArchiveElements()

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

Returns
-------
archiveElements :
    `list` [`~lsst.afw.table.io.Persistable`]

Definition at line 410 of file stamps.py.

◆ getMaskedImages()

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

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

Definition at line 400 of file stamps.py.

◆ metadata()

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

Definition at line 421 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.brightStarStamps.BrightStarStamps, and lsst.meas.algorithms.stamps.Stamps.

Definition at line 321 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.brightStarStamps.BrightStarStamps, and lsst.meas.algorithms.stamps.Stamps.

Definition at line 333 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 371 of file stamps.py.

Member Data Documentation

◆ use_archive

lsst.meas.algorithms.stamps.StampsBase.use_archive

Definition at line 318 of file stamps.py.

◆ use_mask

lsst.meas.algorithms.stamps.StampsBase.use_mask

Definition at line 316 of file stamps.py.

◆ use_variance

lsst.meas.algorithms.stamps.StampsBase.use_variance

Definition at line 317 of file stamps.py.


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