lsst.pipe.tasks gd5638573c2+392ae78cd2
Loading...
Searching...
No Matches
lsst.pipe.tasks.scaleZeroPoint.SpatialScaleZeroPointTask Class Reference
Inheritance diagram for lsst.pipe.tasks.scaleZeroPoint.SpatialScaleZeroPointTask:
lsst.pipe.tasks.scaleZeroPoint.ScaleZeroPointTask

Public Member Functions

 __init__ (self, *args, **kwargs)
 run (self, exposure, dataRef)
 computeImageScaler (self, exposure, dataRef)
Public Member Functions inherited from lsst.pipe.tasks.scaleZeroPoint.ScaleZeroPointTask
 __init__ (self, *args, **kwargs)
 getPhotoCalib (self)
 scaleFromPhotoCalib (self, calib)
 scaleFromFluxMag0 (self, fluxMag0)

Additional Inherited Members

Static Public Attributes inherited from lsst.pipe.tasks.scaleZeroPoint.ScaleZeroPointTask
 ConfigClass = ScaleZeroPointConfig
Protected Attributes inherited from lsst.pipe.tasks.scaleZeroPoint.ScaleZeroPointTask
 _photoCalib = afwImage.makePhotoCalibFromCalibZeroPoint(fluxMag0, 0.0)
Static Protected Attributes inherited from lsst.pipe.tasks.scaleZeroPoint.ScaleZeroPointTask
str _DefaultName = "scaleZeroPoint"

Detailed Description

Compute spatially varying scale factor to scale exposures to a desired photometric zero point.

Member Function Documentation

◆ computeImageScaler()

lsst.pipe.tasks.scaleZeroPoint.SpatialScaleZeroPointTask.computeImageScaler ( self,
exposure,
dataRef )
Compute image scaling object for a given exposure.

Parameters
----------
exposure : `lsst.afw.image.Exposure`
    Exposure for which scaling is desired. Only wcs and bbox are used.
dataRef : `Unknown`
    Data reference of exposure.
    dataRef.dataId used to retrieve all applicable fluxMag0's from a database.

Returns
-------
result : `SpatialImageScaler`

Reimplemented from lsst.pipe.tasks.scaleZeroPoint.ScaleZeroPointTask.

◆ run()

lsst.pipe.tasks.scaleZeroPoint.SpatialScaleZeroPointTask.run ( self,
exposure,
dataRef )
Scale the specified exposure to the desired photometric zeropoint.

Parameters
----------
exposure : `lsst.afw.image.Exposure`
    Exposure to scale; masked image is scaled in place.
dataRef : `Unknown`
    Data reference for exposure.

Returns
-------
result : `lsst.pipe.base.Struct`
    Results as a struct with attributes:

    ``imageScaler``
        The image scaling object used to scale exposure.

Reimplemented from lsst.pipe.tasks.scaleZeroPoint.ScaleZeroPointTask.


The documentation for this class was generated from the following file:
  • python/lsst/pipe/tasks/scaleZeroPoint.py