Definition at line 31 of file exposureAssembler.py.
◆ assemble()
def lsst.obs.base.exposureAssembler.ExposureAssembler.assemble |
( |
|
self, |
|
|
|
components |
|
) |
| |
Construct an Exposure from components.
Parameters
----------
components : `dict`
All the components from which to construct the Exposure.
Some can be missing.
Returns
-------
exposure : `~lsst.afw.image.Exposure`
Assembled exposure.
Raises
------
ValueError
Some supplied components are not recognized.
Definition at line 171 of file exposureAssembler.py.
◆ disassemble()
def lsst.obs.base.exposureAssembler.ExposureAssembler.disassemble |
( |
|
self, |
|
|
|
composite |
|
) |
| |
Disassemble an afw Exposure.
This implementation attempts to extract components from the parent
by looking for attributes of the same name or getter methods derived
from the component name.
Parameters
----------
composite : `~lsst.afw.image.Exposure`
`Exposure` composite object consisting of components to be
extracted.
Returns
-------
components : `dict`
`dict` with keys matching the components defined in
`self.storageClass` and values being `DatasetComponent` instances
describing the component.
Raises
------
ValueError
A requested component can not be found in the parent using generic
lookups.
TypeError
The parent object does not match the supplied `self.storageClass`.
Definition at line 126 of file exposureAssembler.py.
◆ getComponent()
def lsst.obs.base.exposureAssembler.ExposureAssembler.getComponent |
( |
|
self, |
|
|
|
composite, |
|
|
|
componentName |
|
) |
| |
Get a component from an Exposure
Parameters
----------
composite : `~lsst.afw.image.Exposure`
`Exposure` to access component.
componentName : `str`
Name of component to retrieve.
Returns
-------
component : `object`
The component. Can be None.
Raises
------
AttributeError
The component can not be found.
Definition at line 69 of file exposureAssembler.py.
◆ getValidComponents()
def lsst.obs.base.exposureAssembler.ExposureAssembler.getValidComponents |
( |
|
self, |
|
|
|
composite |
|
) |
| |
Extract all non-None components from a composite.
Parameters
----------
composite : `object`
Composite from which to extract components.
Returns
-------
comps : `dict`
Non-None components extracted from the composite, indexed by the
component name as derived from the `self.storageClass`.
Definition at line 103 of file exposureAssembler.py.
◆ handleParameters()
def lsst.obs.base.exposureAssembler.ExposureAssembler.handleParameters |
( |
|
self, |
|
|
|
inMemoryDataset, |
|
|
|
parameters = None |
|
) |
| |
Modify the in-memory dataset using the supplied parameters,
returning a possibly new object.
Parameters
----------
inMemoryDataset : `object`
Object to modify based on the parameters.
parameters : `dict`, optional
Parameters to apply. Values are specific to the parameter.
Supported parameters are defined in the associated
`StorageClass`. If no relevant parameters are specified the
inMemoryDataset will be return unchanged.
Returns
-------
inMemoryDataset : `object`
Updated form of supplied in-memory dataset, after parameters
have been used.
Definition at line 243 of file exposureAssembler.py.
◆ selectResponsibleComponent()
str lsst.obs.base.exposureAssembler.ExposureAssembler.selectResponsibleComponent |
( |
|
cls, |
|
|
str |
readComponent, |
|
|
|
fromComponents |
|
) |
| |
◆ COMPONENT_MAP
dictionary lsst.obs.base.exposureAssembler.ExposureAssembler.COMPONENT_MAP = {"bbox": "BBox", "xy0": "XY0"} |
|
static |
◆ EXPOSURE_COMPONENTS
lsst.obs.base.exposureAssembler.ExposureAssembler.EXPOSURE_COMPONENTS = set(("image", "variance", "mask", "wcs", "psf")) |
|
static |
◆ EXPOSURE_INFO_COMPONENTS
lsst.obs.base.exposureAssembler.ExposureAssembler.EXPOSURE_INFO_COMPONENTS |
|
static |
Initial value:= set(("apCorrMap", "coaddInputs", "photoCalib", "metadata",
"filterLabel", "transmissionCurve", "visitInfo",
"detector", "validPolygon", "summaryStats"))
Definition at line 34 of file exposureAssembler.py.
◆ EXPOSURE_READ_COMPONENTS
dictionary lsst.obs.base.exposureAssembler.ExposureAssembler.EXPOSURE_READ_COMPONENTS = {"bbox", "dimensions", "xy0", "filter"} |
|
static |
The documentation for this class was generated from the following file: