LSST Applications g04a91732dc+146a938ab0,g07dc498a13+80b84b0d75,g0fba68d861+4c4f3dcb5c,g1409bbee79+80b84b0d75,g1a7e361dbc+80b84b0d75,g1fd858c14a+f6e422e056,g20f46db602+333b6c0f32,g35bb328faa+fcb1d3bbc8,g42c1b31a95+a1301e4c20,g4d2262a081+f1facf12e5,g4d39ba7253+9b833be27e,g4e0f332c67+5d362be553,g53246c7159+fcb1d3bbc8,g60b5630c4e+9b833be27e,g78460c75b0+2f9a1b4bcd,g786e29fd12+cf7ec2a62a,g7b71ed6315+fcb1d3bbc8,g8852436030+790117df0f,g89139ef638+80b84b0d75,g8d6b6b353c+9b833be27e,g9125e01d80+fcb1d3bbc8,g989de1cb63+80b84b0d75,g9f33ca652e+9c6b68d7f3,ga9baa6287d+9b833be27e,gaaedd4e678+80b84b0d75,gabe3b4be73+1e0a283bba,gb1101e3267+9f3571abad,gb58c049af0+f03b321e39,gb90eeb9370+691e4ab549,gc741bbaa4f+2bcd3860df,gcf25f946ba+790117df0f,gd315a588df+5b65d88fe4,gd6cbbdb0b4+c8606af20c,gd9a9a58781+fcb1d3bbc8,gde0f65d7ad+ee6a3faa19,ge278dab8ac+932305ba37,ge82c20c137+76d20ab76d,gee8db133a9+2a6ae0040b,w.2025.10
LSST Data Management Base Package
|
Classes | |
class | CoaddBaseConfig |
class | CoaddBaseTask |
Functions | |
makeSkyInfo (skyMap, tractId, patchId) | |
reorderAndPadList (inputList, inputKeys, outputKeys, padWith=None) | |
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 244 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 121 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 273 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 170 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 298 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 199 of file coaddBase.py.