|
LSST Applications g00d0e8bbd7+8c5ae1fdc5,g013ef56533+603670b062,g083dd6704c+2e189452a7,g199a45376c+0ba108daf9,g1c5cce2383+bc9f6103a4,g1fd858c14a+cd69ed4fc1,g210f2d0738+c4742f2e9e,g262e1987ae+612fa42d85,g29ae962dfc+83d129e820,g2cef7863aa+aef1011c0b,g35bb328faa+8c5ae1fdc5,g3fd5ace14f+5eaa884f2a,g47891489e3+e32160a944,g53246c7159+8c5ae1fdc5,g5b326b94bb+dcc56af22d,g64539dfbff+c4742f2e9e,g67b6fd64d1+e32160a944,g74acd417e5+c122e1277d,g786e29fd12+668abc6043,g87389fa792+8856018cbb,g88cb488625+47d24e4084,g89139ef638+e32160a944,g8d7436a09f+d14b4ff40a,g8ea07a8fe4+b212507b11,g90f42f885a+e1755607f3,g97be763408+34be90ab8c,g98df359435+ec1fa61bf1,ga2180abaac+8c5ae1fdc5,ga9e74d7ce9+43ac651df0,gbf99507273+8c5ae1fdc5,gc2a301910b+c4742f2e9e,gca7fc764a6+e32160a944,gd7ef33dd92+e32160a944,gdab6d2f7ff+c122e1277d,gdb1e2cdc75+1b18322db8,ge410e46f29+e32160a944,ge41e95a9f2+c4742f2e9e,geaed405ab2+0d91c11c6d,w.2025.44
LSST Data Management Base Package
|
Classes | |
| class | CoaddBaseConfig |
| class | CoaddBaseTask |
Functions | |
| makeSkyInfo (skyMap, tractId, patchId) | |
| reorderAndPadList (inputList, inputKeys, outputKeys, padWith=None) | |
| reorderRefs (inputRefs, outputSortKeyOrder, dataIdKey) | |
| subBBoxIter (bbox, subregionSize) | |
| None | growValidPolygons (coaddInputs, int growBy) |
| removeMaskPlanes (afwImage.Mask mask, Iterable mask_planes, Logger|None logger=None) | |
| list[tuple[int, int]] | setRejectedMaskMapping (StatisticsControl statsCtrl) |
| None lsst.pipe.tasks.coaddBase.growValidPolygons | ( | coaddInputs, | |
| int | growBy ) |
Grow coaddInputs' ccds' ValidPolygons in place.
Either modify each ccd's validPolygon in place, or if CoaddInputs
does not have a validPolygon, create one from its bbox.
Parameters
----------
coaddInputs : `lsst.afw.image.coaddInputs`
CoaddInputs object containing the ccds to grow the valid polygons of.
growBy : `int`
The value to grow the valid polygons by.
Notes
-----
Negative values for ``growBy`` can shrink the polygons.
Definition at line 276 of file coaddBase.py.
| lsst.pipe.tasks.coaddBase.makeSkyInfo | ( | skyMap, | |
| tractId, | |||
| patchId ) |
Constructs SkyInfo used by coaddition tasks for multiple
patchId formats.
Parameters
----------
skyMap : `lsst.skyMap.SkyMap`
Sky map.
tractId : `int`
The ID of the tract.
patchId : `str` or `int` or `tuple` of `int`
Either Gen2-style comma delimited string (e.g. '4,5'),
tuple of integers (e.g (4, 5), Gen3-style integer.
Returns
-------
makeSkyInfo : `lsst.pipe.base.Struct`
pipe_base Struct with attributes:
``skyMap``
Sky map (`lsst.skyMap.SkyMap`).
``tractInfo``
Information for chosen tract of sky map (`lsst.skyMap.TractInfo`).
``patchInfo``
Information about chosen patch of tract (`lsst.skyMap.PatchInfo`).
``wcs``
WCS of tract (`lsst.afw.image.SkyWcs`).
``bbox``
Outer bbox of patch, as an geom Box2I (`lsst.afw.geom.Box2I`).
Definition at line 114 of file coaddBase.py.
| lsst.pipe.tasks.coaddBase.removeMaskPlanes | ( | afwImage.Mask | mask, |
| Iterable | mask_planes, | ||
| Logger | None | logger = None ) |
Unset the mask of an image for mask planes specified in the config.
Parameters
----------
mask : `lsst.afw.image.Mask`
The mask to be modified.
mask_planes : `list`
The list of mask planes to be removed.
logger : `logging.Logger`, optional
Logger to log messages.
Definition at line 305 of file coaddBase.py.
| lsst.pipe.tasks.coaddBase.reorderAndPadList | ( | inputList, | |
| inputKeys, | |||
| outputKeys, | |||
| padWith = None ) |
Match the order of one list to another, padding if necessary
Parameters
----------
inputList : `list`
List to be reordered and padded. Elements can be any type.
inputKeys : `iterable`
Iterable of values to be compared with outputKeys. Length must match `inputList`.
outputKeys : `iterable`
Iterable of values to be compared with inputKeys.
padWith : `Unknown`
Any value to be inserted where inputKey not in outputKeys.
Returns
-------
outputList : `list`
Copy of inputList reordered per outputKeys and padded with `padWith`
so that the length matches length of outputKeys.
Definition at line 163 of file coaddBase.py.
| lsst.pipe.tasks.coaddBase.reorderRefs | ( | inputRefs, | |
| outputSortKeyOrder, | |||
| dataIdKey ) |
Reorder inputRefs per outputSortKeyOrder.
Any inputRefs which are lists will be resorted per specified key e.g.,
'detector.' Only iterables will be reordered, and values can be of type
`lsst.pipe.base.connections.DeferredDatasetRef` or
`lsst.daf.butler.core.datasets.ref.DatasetRef`.
Returned lists of refs have the same length as the outputSortKeyOrder.
If an outputSortKey not in the inputRef, then it will be padded with None.
If an inputRef contains an inputSortKey that is not in the
outputSortKeyOrder it will be removed.
Parameters
----------
inputRefs : `lsst.pipe.base.connections.QuantizedConnection`
Input references to be reordered and padded.
outputSortKeyOrder : `iterable`
Iterable of values to be compared with inputRef's dataId[dataIdKey].
dataIdKey : `str`
The data ID key in the dataRefs to compare with the outputSortKeyOrder.
Returns
-------
inputRefs : `lsst.pipe.base.connections.QuantizedConnection`
Quantized Connection with sorted DatasetRef values sorted if iterable.
Definition at line 192 of file coaddBase.py.
| list[tuple[int, int]] lsst.pipe.tasks.coaddBase.setRejectedMaskMapping | ( | StatisticsControl | statsCtrl | ) |
Map certain mask planes of the warps to new planes for the coadd.
If a pixel is rejected due to a mask value other than EDGE, NO_DATA,
or CLIPPED, set it to REJECTED on the coadd.
If a pixel is rejected due to EDGE, set the coadd pixel to SENSOR_EDGE.
If a pixel is rejected due to CLIPPED, set the coadd pixel to CLIPPED.
Parameters
----------
statsCtrl : `lsst.afw.math.StatisticsControl`
Statistics control object for coadd.
Returns
-------
maskMap : `list` of `tuple` of `int`
A list of mappings of mask planes of the warped exposures to
mask planes of the coadd.
Definition at line 330 of file coaddBase.py.
| lsst.pipe.tasks.coaddBase.subBBoxIter | ( | bbox, | |
| subregionSize ) |
Iterate over subregions of a bbox.
Parameters
----------
bbox : `lsst.geom.Box2I`
Bounding box over which to iterate.
subregionSize : `lsst.geom.Extent2I`
Size of sub-bboxes.
Yields
------
subBBox : `lsst.geom.Box2I`
Next sub-bounding box of size ``subregionSize`` or smaller; each ``subBBox``
is contained within ``bbox``, so it may be smaller than ``subregionSize`` at
the edges of ``bbox``, but it will never be empty.
Raises
------
RuntimeError
Raised if any of the following occur:
- The given bbox is empty.
- The subregionSize is 0.
Definition at line 231 of file coaddBase.py.