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 | |
fromCamera (cls, config, camera) | |
fromSimilar (cls, other) | |
__init__ (self, config, dims, transform, values=None, numbers=None) | |
__reduce__ (self) | |
clone (self) | |
addCcd (self, exposure) | |
toCcdBackground (self, detector, bbox) | |
merge (self, other) | |
__iadd__ (self, other) | |
getStatsImage (self) | |
Public Attributes | |
config | |
dims | |
transform | |
Protected Attributes | |
_values | |
_numbers | |
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 498 of file background.py.
lsst.pipe.tasks.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 569 of file background.py.
lsst.pipe.tasks.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 741 of file background.py.
lsst.pipe.tasks.background.FocalPlaneBackground.__reduce__ | ( | self | ) |
Definition at line 607 of file background.py.
lsst.pipe.tasks.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 613 of file background.py.
lsst.pipe.tasks.background.FocalPlaneBackground.clone | ( | self | ) |
Definition at line 610 of file background.py.
lsst.pipe.tasks.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 524 of file background.py.
lsst.pipe.tasks.background.FocalPlaneBackground.fromSimilar | ( | cls, | |
other ) |
Construct from an object that has the same interface. Parameters ---------- other : `FocalPlaneBackground`-like An object that matches the interface of `FocalPlaneBackground` but which may be different. Returns ------- background : `FocalPlaneBackground` Something guaranteed to be a `FocalPlaneBackground`.
Definition at line 553 of file background.py.
lsst.pipe.tasks.background.FocalPlaneBackground.getStatsImage | ( | self | ) |
Return the background model data This is the measurement of the background for each of the superpixels.
Definition at line 756 of file background.py.
lsst.pipe.tasks.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 715 of file background.py.
lsst.pipe.tasks.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 665 of file background.py.
|
protected |
Definition at line 605 of file background.py.
|
protected |
Definition at line 598 of file background.py.
lsst.pipe.tasks.background.FocalPlaneBackground.config |
Definition at line 588 of file background.py.
lsst.pipe.tasks.background.FocalPlaneBackground.dims |
Definition at line 589 of file background.py.
lsst.pipe.tasks.background.FocalPlaneBackground.transform |
Definition at line 590 of file background.py.