lsst.pipe.tasks g8b9e2231ea+fa07cb600e
Loading...
Searching...
No Matches
Classes | Functions | Variables
lsst.pipe.tasks.skyCorrection Namespace Reference

Classes

class  SkyCorrectionConfig
 
class  SkyCorrectionConnections
 
class  SkyCorrectionTask
 

Functions

def reorderAndPadList (inputList, inputKeys, outputKeys, padWith=None)
 
def _makeCameraImage (camera, exposures, binning)
 
def makeCameraImage (camera, exposures, filename=None, binning=8)
 
def _skyLookup (datasetType, registry, quantumDataId, collections)
 

Variables

 isTrimmed
 
 exposures
 
 background
 

Function Documentation

◆ _makeCameraImage()

def lsst.pipe.tasks.skyCorrection._makeCameraImage (   camera,
  exposures,
  binning 
)
protected
Make and write an image of an entire focal plane

Parameters
----------
camera : `lsst.afw.cameraGeom.Camera`
    Camera description.
exposures : `dict` mapping detector ID to `lsst.afw.image.Exposure`
    CCD exposures, binned by `binning`.
binning : `int`
    Binning size that has been applied to images.

Definition at line 71 of file skyCorrection.py.

◆ _skyLookup()

def lsst.pipe.tasks.skyCorrection._skyLookup (   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 149 of file skyCorrection.py.

◆ makeCameraImage()

def lsst.pipe.tasks.skyCorrection.makeCameraImage (   camera,
  exposures,
  filename = None,
  binning = 8 
)
Make and write an image of an entire focal plane

Parameters
----------
camera : `lsst.afw.cameraGeom.Camera`
    Camera description.
exposures : `list` of `tuple` of `int` and `lsst.afw.image.Exposure`
    List of detector ID and CCD exposures (binned by `binning`).
filename : `str`, optional
    Output filename.
binning : `int`
    Binning size that has been applied to images.

Definition at line 129 of file skyCorrection.py.

◆ reorderAndPadList()

def lsst.pipe.tasks.skyCorrection.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 :
    Any value to be inserted where inputKey not in outputKeys

Returns
-------
list
    Copy of inputList reordered per outputKeys and padded with `padWith`
    so that the length matches length of outputKeys.

Definition at line 41 of file skyCorrection.py.

Variable Documentation

◆ background

lsst.pipe.tasks.skyCorrection.background

Definition at line 95 of file skyCorrection.py.

◆ exposures

lsst.pipe.tasks.skyCorrection.exposures

Definition at line 94 of file skyCorrection.py.

◆ isTrimmed

lsst.pipe.tasks.skyCorrection.isTrimmed

Definition at line 93 of file skyCorrection.py.