lsst.fgcmcal g741ed703d4+07c6f2a639
Loading...
Searching...
No Matches
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 = fgcm.FgcmLUTMaker(lutConfig)

Static Public Attributes

 ConfigClass = FgcmMakeLutConfig

Protected Member Functions

 _fgcmMakeLut (self, camera, opticsHandle, sensorHandleDict, filterHandleDict, filterToBand)
 _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 = opticsHandle.get()
dict _sensorsTransmission = {}
dict _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.

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

◆ _fgcmMakeLut()

lsst.fgcmcal.fgcmMakeLut.FgcmMakeLutTask._fgcmMakeLut ( self,
camera,
opticsHandle,
sensorHandleDict,
filterHandleDict,
filterToBand )
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 or tuple of physical filter label and
    detector.
filterToBand : `dict` [`str`: `str`]
    Mapping of physical filter to band name.

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 fgcm standard passbands, with the key as the
        physical filter name.
    standardPassbands : `dict` [`str`, `astropy.table.Table`]
        Dictionary of standard passbands in astropy table format, with
        the key as the band name.

◆ _getStdPhysicalFilterList()

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

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

◆ _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

◆ _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.

◆ _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.

◆ _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`

The documentation for this class was generated from the following file:
  • python/lsst/fgcmcal/fgcmMakeLut.py