lsst.ip.isr  13.0-15-g0af5a6c+11
 All Classes Namespaces Files Functions Variables Typedefs Macros Groups
Public Member Functions | Static Public Attributes | List of all members
lsst.ip.isr.linearize.LinearizeBase Class Reference
Inheritance diagram for lsst.ip.isr.linearize.LinearizeBase:
lsst.ip.isr.linearize.LinearizeLookupTable lsst.ip.isr.linearize.LinearizeSquared

Public Member Functions

def __call__
 
def checkLinearityType
 

Static Public Attributes

 LinearityType = None
 

Detailed Description

Abstract base class functor for correcting non-linearity

Subclasses must define __call__ and set class variable LinearityType to a string
that will be used for linearity type in AmpInfoCatalog

Definition at line 36 of file linearize.py.

Member Function Documentation

def lsst.ip.isr.linearize.LinearizeBase.__call__ (   self,
  image,
  detector,
  log = None 
)
Correct non-linearity

@param[in] image  image to be corrected (an lsst.afw.image.Image)
@param[in] detector  detector information (an instance of lsst::afw::cameraGeom::Detector)
@param[in] log  logger (an lsst.log.Log), or None to disable logging;
    a warning is logged if amplifiers are skipped or other worrisome events occur

@return an lsst.pipe.base.Struct containing at least the following fields:
- numAmps number of amplifiers found
- numLinearized  number of amplifiers linearized

@throw RuntimeError if the linearity type is wrong
@throw a subclass of Exception if linearization fails for any other reason

Definition at line 45 of file linearize.py.

def lsst.ip.isr.linearize.LinearizeBase.checkLinearityType (   self,
  detector 
)
Verify that the linearity type is correct for this detector

@warning only checks the first record of the amp info catalog

@param[in] detector  detector information (an instance of lsst::afw::cameraGeom::Detector)

@throw RuntimeError if anything doesn't match

Definition at line 62 of file linearize.py.

Member Data Documentation

lsst.ip.isr.linearize.LinearizeBase.LinearityType = None
static

Definition at line 42 of file linearize.py.


The documentation for this class was generated from the following file: