LSST Applications g1653933729+34a971ddd9,g1a997c3884+34a971ddd9,g28da252d5a+e9c12036e6,g2bbee38e9b+387d105147,g2bc492864f+387d105147,g2ca4be77d2+2af33ed832,g2cdde0e794+704103fe75,g3156d2b45e+6e87dc994a,g347aa1857d+387d105147,g35bb328faa+34a971ddd9,g3a166c0a6a+387d105147,g3bc1096a96+da0d0eec6b,g3e281a1b8c+8ec26ec694,g4005a62e65+ba0306790b,g414038480c+9f5be647b3,g41af890bb2+260fbe2614,g5065538af8+ba676e4b71,g5a0bb5165c+019e928339,g717e5f8c0f+90540262f6,g80478fca09+bbe9b7c29a,g8204df1d8d+90540262f6,g82479be7b0+c8d705dbd9,g858d7b2824+90540262f6,g9125e01d80+34a971ddd9,g91f4dbe722+fd1343598d,ga5288a1d22+cbf2f5b209,gae0086650b+34a971ddd9,gb58c049af0+ace264a4f2,gc28159a63d+387d105147,gcf0d15dbbd+c403bb023e,gd6b7c0dfd1+f7139e6704,gda6a2b7d83+c403bb023e,gdaeeff99f8+7774323b41,ge2409df99d+d3bbf40f76,ge33fd446bb+90540262f6,ge79ae78c31+387d105147,gf0baf85859+890af219f9,gf5289d68f6+d7e5a322af,w.2024.37
LSST Data Management Base Package
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Static Protected Attributes | List of all members
lsst.pipe.tasks.peekExposure.PeekPhotoTask Class Reference
Inheritance diagram for lsst.pipe.tasks.peekExposure.PeekPhotoTask:

Public Member Functions

 __init__ (self, Any config, **Any kwargs)
 
pipeBase.Struct run (self, afwImage.Exposure exposure, int|None binSize=None)
 
np.ndarray getGoodSources (self, afwTable.SourceCatalog binnedSourceCat)
 

Static Public Attributes

 ConfigClass = PeekPhotoTaskConfig
 
PeekPhotoTaskConfig config
 
PeekTask peek
 

Static Protected Attributes

str _DefaultName = "peekPhoto"
 

Detailed Description

Peek at a photo (imaging) exposure.

For photo mode, we keep a relatively small detection threshold value, so we
can detect faint sources to use for image quality assessment.

Definition at line 539 of file peekExposure.py.

Constructor & Destructor Documentation

◆ __init__()

lsst.pipe.tasks.peekExposure.PeekPhotoTask.__init__ ( self,
Any config,
**Any kwargs )

Definition at line 551 of file peekExposure.py.

551 def __init__(self, config: Any, **kwargs: Any):
552 super().__init__(config=config, **kwargs)
553 self.makeSubtask("peek")
554

Member Function Documentation

◆ getGoodSources()

np.ndarray lsst.pipe.tasks.peekExposure.PeekPhotoTask.getGoodSources ( self,
afwTable.SourceCatalog binnedSourceCat )
Perform any filtering on the source catalog.

Parameters
----------
binnedSourceCat : `lsst.afw.table.SourceCatalog`
    Source catalog from the binned exposure.

Returns
-------
goodSourceMask : `numpy.ndarray`
    Boolean array indicating which sources are good.

Definition at line 589 of file peekExposure.py.

589 def getGoodSources(self, binnedSourceCat: afwTable.SourceCatalog) -> np.ndarray:
590 """Perform any filtering on the source catalog.
591
592 Parameters
593 ----------
594 binnedSourceCat : `lsst.afw.table.SourceCatalog`
595 Source catalog from the binned exposure.
596
597 Returns
598 -------
599 goodSourceMask : `numpy.ndarray`
600 Boolean array indicating which sources are good.
601 """
602 # Perform any filtering on the source catalog
603 goodSourceMask = np.ones(len(binnedSourceCat), dtype=bool)
604 return goodSourceMask
605
606

◆ run()

pipeBase.Struct lsst.pipe.tasks.peekExposure.PeekPhotoTask.run ( self,
afwImage.Exposure exposure,
int | None binSize = None )
Peek at donut exposure.

Parameters
----------
exposure : `lsst.afw.image.Exposure`
    Exposure at which to peek.
binSize : `int`, optional
    Binning factor for exposure.  Default is None, which will use the
    binning factor from the config.

Returns
-------
result : `pipeBase.Struct`
    Result of photo peeking.
    Struct containing:
        - mode : `str`
            Peek mode that was run.
        - binSize : `int`
            Binning factor used.
        - binnedSourceCat : `lsst.afw.table.SourceCatalog`
            Source catalog from the binned exposure.

Definition at line 555 of file peekExposure.py.

555 def run(self, exposure: afwImage.Exposure, binSize: int | None = None) -> pipeBase.Struct:
556 """Peek at donut exposure.
557
558 Parameters
559 ----------
560 exposure : `lsst.afw.image.Exposure`
561 Exposure at which to peek.
562 binSize : `int`, optional
563 Binning factor for exposure. Default is None, which will use the
564 binning factor from the config.
565
566 Returns
567 -------
568 result : `pipeBase.Struct`
569 Result of photo peeking.
570 Struct containing:
571 - mode : `str`
572 Peek mode that was run.
573 - binSize : `int`
574 Binning factor used.
575 - binnedSourceCat : `lsst.afw.table.SourceCatalog`
576 Source catalog from the binned exposure.
577 """
578 if binSize is None:
579 binSize = self.config.binSize
580
581 peekResult = self.peek.run(exposure, binSize)
582
583 return pipeBase.Struct(
584 mode="photo",
585 binSize=binSize,
586 binnedSourceCat=peekResult.sourceCat,
587 )
588

Member Data Documentation

◆ _DefaultName

str lsst.pipe.tasks.peekExposure.PeekPhotoTask._DefaultName = "peekPhoto"
staticprotected

Definition at line 549 of file peekExposure.py.

◆ config

PeekPhotoTaskConfig lsst.pipe.tasks.peekExposure.PeekPhotoTask.config
static

Definition at line 547 of file peekExposure.py.

◆ ConfigClass

lsst.pipe.tasks.peekExposure.PeekPhotoTask.ConfigClass = PeekPhotoTaskConfig
static

Definition at line 546 of file peekExposure.py.

◆ peek

PeekTask lsst.pipe.tasks.peekExposure.PeekPhotoTask.peek
static

Definition at line 548 of file peekExposure.py.


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