lsst.pipe.tasks g35da1f9f46+5103007272
Loading...
Searching...
No Matches
Classes | Functions
lsst.pipe.tasks.skyCorrection Namespace Reference

Classes

class  SkyCorrectionConfig
 
class  SkyCorrectionConnections
 
class  SkyCorrectionTask
 

Functions

 _skyFrameLookup (datasetType, registry, quantumDataId, collections)
 
 _reorderAndPadList (inputList, inputKeys, outputKeys, padWith=None)
 

Function Documentation

◆ _reorderAndPadList()

lsst.pipe.tasks.skyCorrection._reorderAndPadList (   inputList,
  inputKeys,
  outputKeys,
  padWith = None 
)
protected
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 :
    Any value to be inserted where one of inputKeys is 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 72 of file skyCorrection.py.

◆ _skyFrameLookup()

lsst.pipe.tasks.skyCorrection._skyFrameLookup (   datasetType,
  registry,
  quantumDataId,
  collections 
)
protected
Lookup function to identify sky frames.

Parameters
----------
datasetType : `lsst.daf.butler.DatasetType`
    Dataset to lookup.
registry : `lsst.daf.butler.Registry`
    Butler registry to query.
quantumDataId : `lsst.daf.butler.DataCoordinate`
    Data id to transform to find sky frames.
    The ``detector`` entry will be stripped.
collections : `lsst.daf.butler.CollectionSearch`
    Collections to search through.

Returns
-------
results : `list` [`lsst.daf.butler.DatasetRef`]
    List of datasets that will be used as sky calibration frames.

Definition at line 42 of file skyCorrection.py.