LSST Applications 27.0.0,g0265f82a02+469cd937ee,g02d81e74bb+21ad69e7e1,g1470d8bcf6+cbe83ee85a,g2079a07aa2+e67c6346a6,g212a7c68fe+04a9158687,g2305ad1205+94392ce272,g295015adf3+81dd352a9d,g2bbee38e9b+469cd937ee,g337abbeb29+469cd937ee,g3939d97d7f+72a9f7b576,g487adcacf7+71499e7cba,g50ff169b8f+5929b3527e,g52b1c1532d+a6fc98d2e7,g591dd9f2cf+df404f777f,g5a732f18d5+be83d3ecdb,g64a986408d+21ad69e7e1,g858d7b2824+21ad69e7e1,g8a8a8dda67+a6fc98d2e7,g99cad8db69+f62e5b0af5,g9ddcbc5298+d4bad12328,ga1e77700b3+9c366c4306,ga8c6da7877+71e4819109,gb0e22166c9+25ba2f69a1,gb6a65358fc+469cd937ee,gbb8dafda3b+69d3c0e320,gc07e1c2157+a98bf949bb,gc120e1dc64+615ec43309,gc28159a63d+469cd937ee,gcf0d15dbbd+72a9f7b576,gdaeeff99f8+a38ce5ea23,ge6526c86ff+3a7c1ac5f1,ge79ae78c31+469cd937ee,gee10cc3b42+a6fc98d2e7,gf1cff7945b+21ad69e7e1,gfbcc870c63+9a11dc8c8f
LSST Data Management Base Package
|
Public Member Functions | |
backgroundToExposure (self, statsImage, bbox) | |
measureBackground (self, image) | |
averageBackgrounds (self, bgList) | |
measureScale (self, image, skyBackground) | |
solveScales (self, scales) | |
subtractSkyFrame (self, image, skyBackground, scale, bgList=None) | |
Static Public Member Functions | |
exposureToBackground (bgExp) | |
Static Public Attributes | |
ConfigClass = SkyMeasurementConfig | |
Task for creating, persisting and using sky frames A sky frame is like a fringe frame (the sum of many exposures of the night sky, combined with rejection to remove astrophysical objects) except the structure is on larger scales, and hence we bin the images and represent them as a background model (a `lsst.afw.math.BackgroundMI`). The sky frame represents the dominant response of the camera to the sky background.
Definition at line 116 of file background.py.
lsst.pipe.tasks.background.SkyMeasurementTask.averageBackgrounds | ( | self, | |
bgList ) |
Average multiple background models The input background models should be a `BackgroundList` consisting of a single `BackgroundMI`. Parameters ---------- bgList : `list` of `lsst.afw.math.BackgroundList` Background models to average. Returns ------- bgExp : `lsst.afw.image.Exposure` Background model in Exposure format.
Definition at line 227 of file background.py.
lsst.pipe.tasks.background.SkyMeasurementTask.backgroundToExposure | ( | self, | |
statsImage, | |||
bbox ) |
Convert a background model to an exposure Calibs need to be persisted as an Exposure, so we need to convert the background model to an Exposure. Parameters ---------- statsImage : `lsst.afw.image.MaskedImageF` Background model's statistics image. bbox : `lsst.geom.Box2I` Bounding box for image. Returns ------- exp : `lsst.afw.image.Exposure` Background model in Exposure format.
Definition at line 158 of file background.py.
|
static |
Convert an exposure to background model Calibs need to be persisted as an Exposure, so we need to convert the persisted Exposure to a background model. Parameters ---------- bgExp : `lsst.afw.image.Exposure` Background model in Exposure format. Returns ------- bg : `lsst.afw.math.BackgroundList` Background model
Definition at line 128 of file background.py.
lsst.pipe.tasks.background.SkyMeasurementTask.measureBackground | ( | self, | |
image ) |
Measure a background model for image This doesn't use a full-featured background model (e.g., no Chebyshev approximation) because we just want the binning behaviour. This will allow us to average the bins later (`averageBackgrounds`). The `BackgroundMI` is wrapped in a `BackgroundList` so it can be pickled and persisted. Parameters ---------- image : `lsst.afw.image.MaskedImage` Image for which to measure background. Returns ------- bgModel : `lsst.afw.math.BackgroundList` Background model.
Definition at line 185 of file background.py.
lsst.pipe.tasks.background.SkyMeasurementTask.measureScale | ( | self, | |
image, | |||
skyBackground ) |
Measure scale of background model in image We treat the sky frame much as we would a fringe frame (except the length scale of the variations is different): we measure samples on the input image and the sky frame, which we will use to determine the scaling factor in the 'solveScales` method. Parameters ---------- image : `lsst.afw.image.Exposure` or `lsst.afw.image.MaskedImage` Science image for which to measure scale. skyBackground : `lsst.afw.math.BackgroundList` Sky background model. Returns ------- imageSamples : `numpy.ndarray` Sample measurements on image. skySamples : `numpy.ndarray` Sample measurements on sky frame.
Definition at line 273 of file background.py.
lsst.pipe.tasks.background.SkyMeasurementTask.solveScales | ( | self, | |
scales ) |
Solve multiple scales for a single scale factor Having measured samples from the image and sky frame, we fit for the scaling factor. Parameters ---------- scales : `list` of a `tuple` of two `numpy.ndarray` arrays A `list` of the results from `measureScale` method. Returns ------- scale : `float` Scale factor.
Definition at line 320 of file background.py.
lsst.pipe.tasks.background.SkyMeasurementTask.subtractSkyFrame | ( | self, | |
image, | |||
skyBackground, | |||
scale, | |||
bgList = None ) |
Subtract sky frame from science image Parameters ---------- image : `lsst.afw.image.Exposure` or `lsst.afw.image.MaskedImage` Science image. skyBackground : `lsst.afw.math.BackgroundList` Sky background model. scale : `float` Scale to apply to background model. bgList : `lsst.afw.math.BackgroundList` List of backgrounds applied to image
Definition at line 362 of file background.py.
|
static |
Definition at line 125 of file background.py.