LSST Applications g0000d66e7c+4a51730b0a,g0485b4d2cb+be65c9c1d7,g0fba68d861+eb108e5914,g1ec0fe41b4+3ea9d11450,g1fd858c14a+41d169aaf2,g2440f9efcc+8c5ae1fdc5,g35bb328faa+8c5ae1fdc5,g470b45d79c+bb7d8e732a,g4d2262a081+972b13e66a,g53246c7159+8c5ae1fdc5,g55585698de+c657de43f9,g56a49b3a55+7eddd92ad8,g60b5630c4e+c657de43f9,g67b6fd64d1+97cc007aa2,g78460c75b0+7e33a9eb6d,g786e29fd12+668abc6043,g7ac00fbb6c+088e1a4fa9,g8352419a5c+8c5ae1fdc5,g8852436030+3f3bba821f,g89139ef638+97cc007aa2,g94187f82dc+c657de43f9,g989de1cb63+97cc007aa2,g9d31334357+c657de43f9,g9f33ca652e+06d39d8afb,ga815be3f0b+8e7c4d07ad,gabe3b4be73+8856018cbb,gabf8522325+977d9fabaf,gb1101e3267+12c96a40b1,gb89ab40317+97cc007aa2,gc91f06edcd+2ffb87f22b,gcf25f946ba+3f3bba821f,gd6cbbdb0b4+1cc2750d2e,gde0f65d7ad+4ad7118dbf,ge278dab8ac+6b863515ed,ge410e46f29+97cc007aa2,gf35d7ec915+97dd712d81,gf5e32f922b+8c5ae1fdc5,gf67bdafdda+97cc007aa2,w.2025.19
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 274 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 112 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 303 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 161 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 190 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 328 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 229 of file coaddBase.py.