lsst.fgcmcal g487adcacf7+2dd8f347ac
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
lsst.fgcmcal.fgcmMakeLut.FgcmMakeLutTask Class Reference
Inheritance diagram for lsst.fgcmcal.fgcmMakeLut.FgcmMakeLutTask:

Public Member Functions

 __init__ (self, initInputs=None, **kwargs)
 
 runQuantum (self, butlerQC, inputRefs, outputRefs)
 

Public Attributes

 fgcmLutMaker
 

Static Public Attributes

 ConfigClass = FgcmMakeLutConfig
 

Protected Member Functions

 _fgcmMakeLut (self, camera, opticsHandle, sensorHandleDict, filterHandleDict)
 
 _getStdPhysicalFilterList (self)
 
 _createLutConfig (self, nCcd)
 
 _loadThroughputs (self, camera, opticsHandle, sensorHandleDict, filterHandleDict)
 
 _getThroughputDetector (self, detector, physicalFilter, throughputLambda)
 
 _makeLutSchema (self, physicalFilterString, stdPhysicalFilterString, atmosphereTableName)
 
 _makeLutCat (self, lutSchema, physicalFilterString, stdPhysicalFilterString, atmosphereTableName)
 

Protected Attributes

 _opticsTransmission
 
 _sensorsTransmission
 
 _filtersTransmission
 

Static Protected Attributes

str _DefaultName = "fgcmMakeLut"
 

Detailed Description

Make Look-Up Table for FGCM.

This task computes a look-up-table for the range in expected atmosphere
variation and variation in instrumental throughput (as tracked by the
transmission_filter products).  By pre-computing linearized integrals,
the FGCM fit is orders of magnitude faster for stars with a broad range
of colors and observing bands, yielding precision at the 1-2 mmag level.

Computing a LUT requires running MODTRAN or with a pre-generated
atmosphere table packaged with fgcm.

Definition at line 324 of file fgcmMakeLut.py.

Constructor & Destructor Documentation

◆ __init__()

lsst.fgcmcal.fgcmMakeLut.FgcmMakeLutTask.__init__ ( self,
initInputs = None,
** kwargs )

Definition at line 341 of file fgcmMakeLut.py.

Member Function Documentation

◆ _createLutConfig()

lsst.fgcmcal.fgcmMakeLut.FgcmMakeLutTask._createLutConfig ( self,
nCcd )
protected
Create the fgcmLut config dictionary

Parameters
----------
nCcd: `int`
   Number of CCDs in the camera

Definition at line 505 of file fgcmMakeLut.py.

◆ _fgcmMakeLut()

lsst.fgcmcal.fgcmMakeLut.FgcmMakeLutTask._fgcmMakeLut ( self,
camera,
opticsHandle,
sensorHandleDict,
filterHandleDict )
protected
Make a FGCM Look-up Table

Parameters
----------
camera : `lsst.afw.cameraGeom.Camera`
    Camera from the butler.
opticsHandle : `lsst.daf.butler.DeferredDatasetHandle`
    Reference to optics transmission curve.
sensorHandleDict : `dict` of [`int`, `lsst.daf.butler.DeferredDatasetHandle`]
    Dictionary of references to sensor transmission curves.  Key will
    be detector id.
filterHandleDict : `dict` of [`str`, `lsst.daf.butler.DeferredDatasetHandle`]
    Dictionary of references to filter transmission curves.  Key will
    be physical filter label.

Returns
-------
retStruct : `lsst.pipe.base.Struct`
    Output structure with keys:

    fgcmLookUpTable : `BaseCatalog`
        The FGCM look-up table.
    fgcmStandardAtmosphere : `lsst.afw.image.TransmissionCurve`
        Transmission curve for the FGCM standard atmosphere.
    fgcmStandardPassbands : `dict` [`str`, `lsst.afw.image.TransmissionCurve`]
        Dictionary of standard passbands, with the key as the
        physical filter name.

Definition at line 376 of file fgcmMakeLut.py.

◆ _getStdPhysicalFilterList()

lsst.fgcmcal.fgcmMakeLut.FgcmMakeLutTask._getStdPhysicalFilterList ( self)
protected
Get the standard physical filter lists from config.physicalFilters
and config.stdPhysicalFilterOverrideMap

Returns
-------
stdPhysicalFilters : `list`

Definition at line 493 of file fgcmMakeLut.py.

◆ _getThroughputDetector()

lsst.fgcmcal.fgcmMakeLut.FgcmMakeLutTask._getThroughputDetector ( self,
detector,
physicalFilter,
throughputLambda )
protected
Internal method to get throughput for a detector.

Returns the throughput at the center of the detector for a given filter.

Parameters
----------
detector: `lsst.afw.cameraGeom._detector.Detector`
   Detector on camera
physicalFilter: `str`
   Physical filter label
throughputLambda: `np.array(dtype=np.float64)`
   Wavelength steps (Angstrom)

Returns
-------
throughput: `np.array(dtype=np.float64)`
   Throughput (max 1.0) at throughputLambda

Definition at line 617 of file fgcmMakeLut.py.

◆ _loadThroughputs()

lsst.fgcmcal.fgcmMakeLut.FgcmMakeLutTask._loadThroughputs ( self,
camera,
opticsHandle,
sensorHandleDict,
filterHandleDict )
protected
Internal method to load throughput data for filters

Parameters
----------
camera: `lsst.afw.cameraGeom.Camera`
    Camera from the butler
opticsHandle : `lsst.daf.butler.DeferredDatasetHandle`
    Reference to optics transmission curve.
sensorHandleDict : `dict` of [`int`, `lsst.daf.butler.DeferredDatasetHandle`]
    Dictionary of references to sensor transmission curves.  Key will
    be detector id.
filterHandleDict : `dict` of [`str`, `lsst.daf.butler.DeferredDatasetHandle`]
    Dictionary of references to filter transmission curves.  Key will
    be physical filter label.

Raises
------
ValueError : Raised if configured filter name does not match any of the
    available filter transmission curves.

Definition at line 562 of file fgcmMakeLut.py.

◆ _makeLutCat()

lsst.fgcmcal.fgcmMakeLut.FgcmMakeLutTask._makeLutCat ( self,
lutSchema,
physicalFilterString,
stdPhysicalFilterString,
atmosphereTableName )
protected
Make the LUT schema

Parameters
----------
lutSchema: `afwTable.schema`
   Lut catalog schema
physicalFilterString: `str`
   Combined string of all the physicalFilters
stdPhysicalFilterString: `str`
   Combined string of all the standard physicalFilters
atmosphereTableName: `str`
   Name of the atmosphere table used to generate LUT

Returns
-------
lutCat: `afwTable.BaseCatalog`
   Look-up table catalog for persistence.

Definition at line 736 of file fgcmMakeLut.py.

◆ _makeLutSchema()

lsst.fgcmcal.fgcmMakeLut.FgcmMakeLutTask._makeLutSchema ( self,
physicalFilterString,
stdPhysicalFilterString,
atmosphereTableName )
protected
Make the LUT schema

Parameters
----------
physicalFilterString: `str`
   Combined string of all the physicalFilters
stdPhysicalFilterString: `str`
   Combined string of all the standard physicalFilters
atmosphereTableName: `str`
   Name of the atmosphere table used to generate LUT

Returns
-------
lutSchema: `afwTable.schema`

Definition at line 654 of file fgcmMakeLut.py.

◆ runQuantum()

lsst.fgcmcal.fgcmMakeLut.FgcmMakeLutTask.runQuantum ( self,
butlerQC,
inputRefs,
outputRefs )

Definition at line 344 of file fgcmMakeLut.py.

Member Data Documentation

◆ _DefaultName

str lsst.fgcmcal.fgcmMakeLut.FgcmMakeLutTask._DefaultName = "fgcmMakeLut"
staticprotected

Definition at line 339 of file fgcmMakeLut.py.

◆ _filtersTransmission

lsst.fgcmcal.fgcmMakeLut.FgcmMakeLutTask._filtersTransmission
protected

Definition at line 613 of file fgcmMakeLut.py.

◆ _opticsTransmission

lsst.fgcmcal.fgcmMakeLut.FgcmMakeLutTask._opticsTransmission
protected

Definition at line 584 of file fgcmMakeLut.py.

◆ _sensorsTransmission

lsst.fgcmcal.fgcmMakeLut.FgcmMakeLutTask._sensorsTransmission
protected

Definition at line 597 of file fgcmMakeLut.py.

◆ ConfigClass

lsst.fgcmcal.fgcmMakeLut.FgcmMakeLutTask.ConfigClass = FgcmMakeLutConfig
static

Definition at line 338 of file fgcmMakeLut.py.

◆ fgcmLutMaker

lsst.fgcmcal.fgcmMakeLut.FgcmMakeLutTask.fgcmLutMaker

Definition at line 421 of file fgcmMakeLut.py.


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