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 | fromCamera (cls, config, camera) |
def | __init__ (self, config, dims, transform, values=None, numbers=None) |
def | __reduce__ (self) |
def | clone (self) |
def | addCcd (self, exposure) |
def | toCcdBackground (self, detector, bbox) |
def | merge (self, other) |
def | __iadd__ (self, other) |
def | getStatsImage (self) |
Public Attributes | |
config | |
dims | |
transform | |
Background model for a focal plane camera We model the background empirically with the "superpixel" method: we measure the background in each superpixel and interpolate between superpixels to yield the model. The principal difference between this and `lsst.afw.math.BackgroundMI` is that here the superpixels are defined in the frame of the focal plane of the camera which removes discontinuities across detectors. The constructor you probably want to use is the `fromCamera` classmethod. There are two use patterns for building a background model: * Serial: create a `FocalPlaneBackground`, then `addCcd` for each of the CCDs in an exposure. * Parallel: create a `FocalPlaneBackground`, then `clone` it for each of the CCDs in an exposure and use those to `addCcd` their respective CCD image. Finally, `merge` all the clones into the original. Once you've built the background model, you can apply it to individual CCDs with the `toCcdBackground` method.
Definition at line 482 of file background.py.
def lsst.pipe.drivers.background.FocalPlaneBackground.__init__ | ( | self, | |
config, | |||
dims, | |||
transform, | |||
values = None , |
|||
numbers = None |
|||
) |
Constructor Developers should note that changes to the signature of this method require coordinated changes to the `__reduce__` and `clone` methods. Parameters ---------- config : `FocalPlaneBackgroundConfig` Configuration for measuring backgrounds. dims : `lsst.geom.Extent2I` Dimensions for background samples. transform : `lsst.afw.geom.TransformPoint2ToPoint2` Transformation from focal plane coordinates to sample coordinates. values : `lsst.afw.image.ImageF` Measured background values. numbers : `lsst.afw.image.ImageF` Number of pixels in each background measurement.
Definition at line 536 of file background.py.
def lsst.pipe.drivers.background.FocalPlaneBackground.__iadd__ | ( | self, | |
other | |||
) |
Merge with another FocalPlaneBackground Parameters ---------- other : `FocalPlaneBackground` Another background model to merge. Returns ------- self : `FocalPlaneBackground` The merged background model.
Definition at line 708 of file background.py.
def lsst.pipe.drivers.background.FocalPlaneBackground.__reduce__ | ( | self | ) |
Definition at line 574 of file background.py.
def lsst.pipe.drivers.background.FocalPlaneBackground.addCcd | ( | self, | |
exposure | |||
) |
Add CCD to model We measure the background on the CCD (clipped mean), and record the results in the model. For simplicity, measurements are made in a box on the CCD corresponding to the warped coordinates of the superpixel rather than accounting for little rotations, etc. We also record the number of pixels used in the measurement so we can have a measure of confidence in each bin's value. Parameters ---------- exposure : `lsst.afw.image.Exposure` CCD exposure to measure
Definition at line 580 of file background.py.
def lsst.pipe.drivers.background.FocalPlaneBackground.clone | ( | self | ) |
Definition at line 577 of file background.py.
def lsst.pipe.drivers.background.FocalPlaneBackground.fromCamera | ( | cls, | |
config, | |||
camera | |||
) |
Construct from a camera object Parameters ---------- config : `FocalPlaneBackgroundConfig` Configuration for measuring backgrounds. camera : `lsst.afw.cameraGeom.Camera` Camera for which to measure backgrounds.
Definition at line 508 of file background.py.
def lsst.pipe.drivers.background.FocalPlaneBackground.getStatsImage | ( | self | ) |
Return the background model data This is the measurement of the background for each of the superpixels.
Definition at line 723 of file background.py.
def lsst.pipe.drivers.background.FocalPlaneBackground.merge | ( | self, | |
other | |||
) |
Merge with another FocalPlaneBackground This allows multiple background models to be constructed from different CCDs, and then merged to form a single consistent background model for the entire focal plane. Parameters ---------- other : `FocalPlaneBackground` Another background model to merge. Returns ------- self : `FocalPlaneBackground` The merged background model.
Definition at line 682 of file background.py.
def lsst.pipe.drivers.background.FocalPlaneBackground.toCcdBackground | ( | self, | |
detector, | |||
bbox | |||
) |
Produce a background model for a CCD The superpixel background model is warped back to the CCD frame, for application to the individual CCD. Parameters ---------- detector : `lsst.afw.cameraGeom.Detector` CCD for which to produce background model. bbox : `lsst.geom.Box2I` Bounding box of CCD exposure. Returns ------- bg : `lsst.afw.math.BackgroundList` Background model for CCD.
Definition at line 632 of file background.py.
lsst.pipe.drivers.background.FocalPlaneBackground.config |
Definition at line 555 of file background.py.
lsst.pipe.drivers.background.FocalPlaneBackground.dims |
Definition at line 556 of file background.py.
lsst.pipe.drivers.background.FocalPlaneBackground.transform |
Definition at line 557 of file background.py.