LSST Applications
21.0.0-172-gfb10e10a+18fedfabac,22.0.0+297cba6710,22.0.0+80564b0ff1,22.0.0+8d77f4f51a,22.0.0+a28f4c53b1,22.0.0+dcf3732eb2,22.0.1-1-g7d6de66+2a20fdde0d,22.0.1-1-g8e32f31+297cba6710,22.0.1-1-geca5380+7fa3b7d9b6,22.0.1-12-g44dc1dc+2a20fdde0d,22.0.1-15-g6a90155+515f58c32b,22.0.1-16-g9282f48+790f5f2caa,22.0.1-2-g92698f7+dcf3732eb2,22.0.1-2-ga9b0f51+7fa3b7d9b6,22.0.1-2-gd1925c9+bf4f0e694f,22.0.1-24-g1ad7a390+a9625a72a8,22.0.1-25-g5bf6245+3ad8ecd50b,22.0.1-25-gb120d7b+8b5510f75f,22.0.1-27-g97737f7+2a20fdde0d,22.0.1-32-gf62ce7b1+aa4237961e,22.0.1-4-g0b3f228+2a20fdde0d,22.0.1-4-g243d05b+871c1b8305,22.0.1-4-g3a563be+32dcf1063f,22.0.1-4-g44f2e3d+9e4ab0f4fa,22.0.1-42-gca6935d93+ba5e5ca3eb,22.0.1-5-g15c806e+85460ae5f3,22.0.1-5-g58711c4+611d128589,22.0.1-5-g75bb458+99c117b92f,22.0.1-6-g1c63a23+7fa3b7d9b6,22.0.1-6-g50866e6+84ff5a128b,22.0.1-6-g8d3140d+720564cf76,22.0.1-6-gd805d02+cc5644f571,22.0.1-8-ge5750ce+85460ae5f3,master-g6e05de7fdc+babf819c66,master-g99da0e417a+8d77f4f51a,w.2021.48
LSST Data Management Base Package
|
Public Member Functions | |
def | __init__ (self, butler=None, initInputs=None, *args, **kwargs) |
def | applySkyCorr (self, calexp, skyCorr) |
def | extractStamps (self, inputExposure, refObjLoader=None) |
def | warpStamps (self, stamps, pixCenters) |
def | run (self, inputExposure, refObjLoader=None, dataId=None, skyCorr=None) |
def | runDataRef (self, dataRef) |
def | runQuantum (self, butlerQC, inputRefs, outputRefs) |
Public Attributes | |
modelStampSize | |
modelCenter | |
Static Public Attributes | |
ConfigClass = ProcessBrightStarsConfig | |
RunnerClass = pipeBase.ButlerInitializedTaskRunner | |
The description of the parameters for this Task are detailed in :lsst-task:`~lsst.pipe.base.PipelineTask`. Notes ----- `ProcessBrightStarsTask` is used to extract, process, and store small image cut-outs (or "postage stamps") around bright stars. It relies on three methods, called in succession: `extractStamps` Find bright stars within the exposure using a reference catalog and extract a stamp centered on each. `warpStamps` Shift and warp each stamp to remove optical distortions and sample all stars on the same pixel grid. `measureAndNormalize` Compute the flux of an object in an annulus and normalize it. This is required to normalize each bright star stamp as their central pixels are likely saturated and/or contain ghosts, and cannot be used.
Definition at line 181 of file processBrightStars.py.
def lsst.pipe.tasks.processBrightStars.ProcessBrightStarsTask.__init__ | ( | self, | |
butler = None , |
|||
initInputs = None , |
|||
* | args, | ||
** | kwargs | ||
) |
Definition at line 206 of file processBrightStars.py.
def lsst.pipe.tasks.processBrightStars.ProcessBrightStarsTask.applySkyCorr | ( | self, | |
calexp, | |||
skyCorr | |||
) |
Apply correction to the sky background level. Sky corrections can be generated with the 'skyCorrection.py' executable in pipe_drivers. Because the sky model used by that code extends over the entire focal plane, this can produce better sky subtraction. The calexp is updated in-place. Parameters ---------- calexp : `lsst.afw.image.Exposure` or `lsst.afw.image.MaskedImage` Calibrated exposure. skyCorr : `lsst.afw.math.backgroundList.BackgroundList` or None, optional Full focal plane sky correction, obtained by running `lsst.pipe.drivers.skyCorrection.SkyCorrectionTask`.
Definition at line 222 of file processBrightStars.py.
def lsst.pipe.tasks.processBrightStars.ProcessBrightStarsTask.extractStamps | ( | self, | |
inputExposure, | |||
refObjLoader = None |
|||
) |
Read position of bright stars within `inputExposure` from refCat and extract them. Parameters ---------- inputExposure : `afwImage.exposure.exposure.ExposureF` The image from which bright star stamps should be extracted. refObjLoader : `LoadIndexedReferenceObjectsTask`, optional Loader to find objects within a reference catalog. Returns ------- result : `lsst.pipe.base.Struct` Result struct with components: - ``starIms``: `list` of stamps - ``pixCenters``: `list` of corresponding coordinates to each star's center, in pixels. - ``GMags``: `list` of corresponding (Gaia) G magnitudes. - ``gaiaIds``: `np.ndarray` of corresponding unique Gaia identifiers.
Definition at line 244 of file processBrightStars.py.
def lsst.pipe.tasks.processBrightStars.ProcessBrightStarsTask.run | ( | self, | |
inputExposure, | |||
refObjLoader = None , |
|||
dataId = None , |
|||
skyCorr = None |
|||
) |
Identify bright stars within an exposure using a reference catalog, extract stamps around each, then preprocess them. The preprocessing steps are: shifting, warping and potentially rotating them to the same pixel grid; computing their annular flux and normalizing them. Parameters ---------- inputExposure : `afwImage.exposure.exposure.ExposureF` The image from which bright star stamps should be extracted. refObjLoader : `LoadIndexedReferenceObjectsTask`, optional Loader to find objects within a reference catalog. dataId : `dict` or `lsst.daf.butler.DataCoordinate` The dataId of the exposure (and detector) bright stars should be extracted from. skyCorr : `lsst.afw.math.backgroundList.BackgroundList` or ``None``, optional Full focal plane sky correction, obtained by running `lsst.pipe.drivers.skyCorrection.SkyCorrectionTask`. Returns ------- result : `lsst.pipe.base.Struct` Result struct with component: - ``brightStarStamps``: ``bSS.BrightStarStamps``
Definition at line 436 of file processBrightStars.py.
def lsst.pipe.tasks.processBrightStars.ProcessBrightStarsTask.runDataRef | ( | self, | |
dataRef | |||
) |
Read in required calexp, extract and process stamps around bright stars and write them to disk. Parameters ---------- dataRef : `lsst.daf.persistence.butlerSubset.ButlerDataRef` Data reference to the calexp to extract bright stars from.
Definition at line 508 of file processBrightStars.py.
def lsst.pipe.tasks.processBrightStars.ProcessBrightStarsTask.runQuantum | ( | self, | |
butlerQC, | |||
inputRefs, | |||
outputRefs | |||
) |
Definition at line 524 of file processBrightStars.py.
def lsst.pipe.tasks.processBrightStars.ProcessBrightStarsTask.warpStamps | ( | self, | |
stamps, | |||
pixCenters | |||
) |
Warps and shifts all given stamps so they are sampled on the same pixel grid and centered on the central pixel. This includes rotating the stamp depending on detector orientation. Parameters ---------- stamps : `collections.abc.Sequence` [`afwImage.exposure.exposure.ExposureF`] Image cutouts centered on a single object. pixCenters : `collections.abc.Sequence` [`geom.Point2D`] Positions of each object's center (as obtained from the refCat), in pixels. Returns ------- result : `lsst.pipe.base.Struct` Result struct with components: - ``warpedStars``: `list` [`afwImage.maskedImage.maskedImage.MaskedImage`] of stamps of warped stars - ``warpTransforms``: `list` [`afwGeom.TransformPoint2ToPoint2`] of the corresponding Transform from the initial star stamp to the common model grid - ``xy0s``: `list` [`geom.Point2I`] of coordinates of the bottom-left pixels of each stamp, before rotation - ``nb90Rots``: `int`, the number of 90 degrees rotations required to compensate for detector orientation
Definition at line 342 of file processBrightStars.py.
|
static |
Definition at line 202 of file processBrightStars.py.
lsst.pipe.tasks.processBrightStars.ProcessBrightStarsTask.modelCenter |
Definition at line 217 of file processBrightStars.py.
lsst.pipe.tasks.processBrightStars.ProcessBrightStarsTask.modelStampSize |
Definition at line 209 of file processBrightStars.py.
|
static |
Definition at line 204 of file processBrightStars.py.