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 | |
__init__ (self, amplifier, parent_bbox, parent_detector) | |
subimage_bbox (self) | |
transform_subimage (self, subimage) | |
make_detector (self) | |
apply (cls, parent_exposure, amplifier) | |
Protected Attributes | |
_amplifier | |
_parent_detector | |
_parent_amplifier | |
_is_parent_trimmed | |
_amplifier_comparison | |
A class that can extracts single-amplifier subimages from trimmed or untrimmed assembled images and transforms them to a particular orientation and offset. Callers who have a in-memory assembled `lsst.afw.image.Exposure` should generally just use the `apply` class method. Other methods can be used to implement subimage loads of on on-disk images (e.g. formatter classes in ``obs_base``) or obtain subsets from other image classes. Parameters ---------- amplifier : `Amplifier` Amplifier object that identifies the amplifier to load and sets the orientation and offset of the returned subimage. parent_bbox : `lsst.geom.Box2I` Bounding box of the assembled parent image. This must be equal to either ``parent_detector.getBBox()`` or ``parent_detector.getRawBBox()``; which one is used to determine whether the parent image (and hence the amplifier subimages) is trimmed. parent_detector : `Detector` Detector object that describes the parent image.
Definition at line 128 of file _assembleImage.py.
lsst.afw.cameraGeom._assembleImage.AmplifierIsolator.__init__ | ( | self, | |
amplifier, | |||
parent_bbox, | |||
parent_detector ) |
Definition at line 153 of file _assembleImage.py.
lsst.afw.cameraGeom._assembleImage.AmplifierIsolator.apply | ( | cls, | |
parent_exposure, | |||
amplifier ) |
Obtain a single-amplifier `lsst.afw.image.Exposure` subimage that masquerades as full-detector image for a single-amp detector. Parameters ---------- parent_exposure : `lsst.afw.image.Exposure` Parent image to obtain a subset from. `~lsst.afw.image.Exposure.getDetector` must not return `None`. amplifier : `Amplifier` Target amplifier for the subimage. May differ from the amplifier obtained by ``parent_exposure.getDetector()[amplifier.getName()]`` only by flips and differences in `~Amplifier.getRawXYOffset`. Returns ------- subimage : `lsst.afw.image.Exposure` Exposure subimage for the target amplifier, with the orientation and XY0 described by that amplifier, and a single-amp detector holding a copy of that amplifier. Notes ----- Because we use the target amplifier's bounding box as the bounding box of the detector attached to the returned exposure, other exposure components that are passed through unmodified (e.g. the WCS) should still be valid for the single-amp exposure after it is trimmed and "assembled". Unlike most trimmed+assembled images, however, it will have a nonzero XY0, and code that (incorrectly!) does not pay attention to XY0 may break.
Definition at line 246 of file _assembleImage.py.
lsst.afw.cameraGeom._assembleImage.AmplifierIsolator.make_detector | ( | self | ) |
Create a single-amplifier detector that describes the transformed subimage. Returns ------- detector : `Detector` Detector object with a single amplifier, a trimmed bounding box equal to the amplifier's trimmed bounding box, and no crosstalk.
Definition at line 228 of file _assembleImage.py.
lsst.afw.cameraGeom._assembleImage.AmplifierIsolator.subimage_bbox | ( | self | ) |
The bounding box of the target amplifier in the parent image (`lsst.geom.Box2I`).
Definition at line 178 of file _assembleImage.py.
lsst.afw.cameraGeom._assembleImage.AmplifierIsolator.transform_subimage | ( | self, | |
subimage ) |
Transform an already-extracted subimage to match the orientation and offset of the target amplifier. Parameters ---------- subimage : image-like The subimage to transform; may be any of `lsst.afw.image.Image`, `lsst.afw.image.Mask`, `lsst.afw.image.MaskedImage`, and `lsst.afw.image.Exposure`. Returns ------- transformed : image-like Transformed image of the same type as ``subimage``.
Definition at line 187 of file _assembleImage.py.
|
protected |
Definition at line 154 of file _assembleImage.py.
|
protected |
Definition at line 158 of file _assembleImage.py.
|
protected |
Definition at line 157 of file _assembleImage.py.
|
protected |
Definition at line 156 of file _assembleImage.py.
|
protected |
Definition at line 155 of file _assembleImage.py.