LSST Applications  21.0.0-172-gfb10e10a+18fedfabac,22.0.0+297cba6710,22.0.0+80564b0ff1,22.0.0+8d77f4f51a,22.0.0+a28f4c53b1,22.0.0+dcf3732eb2,22.0.1-1-g7d6de66+2a20fdde0d,22.0.1-1-g8e32f31+297cba6710,22.0.1-1-geca5380+7fa3b7d9b6,22.0.1-12-g44dc1dc+2a20fdde0d,22.0.1-15-g6a90155+515f58c32b,22.0.1-16-g9282f48+790f5f2caa,22.0.1-2-g92698f7+dcf3732eb2,22.0.1-2-ga9b0f51+7fa3b7d9b6,22.0.1-2-gd1925c9+bf4f0e694f,22.0.1-24-g1ad7a390+a9625a72a8,22.0.1-25-g5bf6245+3ad8ecd50b,22.0.1-25-gb120d7b+8b5510f75f,22.0.1-27-g97737f7+2a20fdde0d,22.0.1-32-gf62ce7b1+aa4237961e,22.0.1-4-g0b3f228+2a20fdde0d,22.0.1-4-g243d05b+871c1b8305,22.0.1-4-g3a563be+32dcf1063f,22.0.1-4-g44f2e3d+9e4ab0f4fa,22.0.1-42-gca6935d93+ba5e5ca3eb,22.0.1-5-g15c806e+85460ae5f3,22.0.1-5-g58711c4+611d128589,22.0.1-5-g75bb458+99c117b92f,22.0.1-6-g1c63a23+7fa3b7d9b6,22.0.1-6-g50866e6+84ff5a128b,22.0.1-6-g8d3140d+720564cf76,22.0.1-6-gd805d02+cc5644f571,22.0.1-8-ge5750ce+85460ae5f3,master-g6e05de7fdc+babf819c66,master-g99da0e417a+8d77f4f51a,w.2021.48
LSST Data Management Base Package
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
lsst.fgcmcal.fgcmMakeLut.FgcmMakeLutTask Class Reference
Inheritance diagram for lsst.fgcmcal.fgcmMakeLut.FgcmMakeLutTask:

Public Member Functions

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

Public Attributes

 fgcmLutMaker
 

Static Public Attributes

 ConfigClass = FgcmMakeLutConfig
 
 RunnerClass = FgcmMakeLutRunner
 

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 343 of file fgcmMakeLut.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 361 of file fgcmMakeLut.py.

361  def __init__(self, butler=None, initInputs=None, **kwargs):
362  super().__init__(**kwargs)
363 

Member Function Documentation

◆ runDataRef()

def lsst.fgcmcal.fgcmMakeLut.FgcmMakeLutTask.runDataRef (   self,
  butler 
)
Make a Look-Up Table for FGCM

Parameters
----------
butler:  `lsst.daf.persistence.Butler`

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

Definition at line 369 of file fgcmMakeLut.py.

369  def runDataRef(self, butler):
370  """
371  Make a Look-Up Table for FGCM
372 
373  Parameters
374  ----------
375  butler: `lsst.daf.persistence.Butler`
376 
377  Raises
378  ------
379  ValueError : Raised if configured filter name does not match any of the
380  available filter transmission curves.
381  """
382  camera = butler.get('camera')
383  opticsDataRef = butler.dataRef('transmission_optics')
384 
385  sensorDataRefDict = {}
386  for detector in camera:
387  sensorDataRefDict[detector.getId()] = butler.dataRef('transmission_sensor',
388  dataId={'ccd': detector.getId()})
389 
390  filterDataRefDict = {}
391  for physicalFilter in self.config.physicalFilters:
392  # The physical filters map directly to dataId filter names
393  # for gen2 HSC. This is the only camera that will be supported
394  # by Gen2 fgcmcal, so we do not need to worry about other cases.
395  dataRef = butler.dataRef('transmission_filter', filter=physicalFilter)
396  if not dataRef.datasetExists():
397  raise ValueError(f"Could not find transmission for filter {physicalFilter}.")
398  filterDataRefDict[physicalFilter] = dataRef
399 
400  lutCat = self._fgcmMakeLut(camera,
401  opticsDataRef,
402  sensorDataRefDict,
403  filterDataRefDict)
404  butler.put(lutCat, 'fgcmLookUpTable')
405 

◆ runQuantum()

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

Definition at line 406 of file fgcmMakeLut.py.

406  def runQuantum(self, butlerQC, inputRefs, outputRefs):
407  camera = butlerQC.get(inputRefs.camera)
408 
409  opticsDataRef = butlerQC.get(inputRefs.transmission_optics)
410 
411  sensorRefs = butlerQC.get(inputRefs.transmission_sensor)
412  sensorDataRefDict = {sensorRef.dataId.byName()['detector']: sensorRef for
413  sensorRef in sensorRefs}
414 
415  filterRefs = butlerQC.get(inputRefs.transmission_filter)
416  filterDataRefDict = {filterRef.dataId['physical_filter']: filterRef for
417  filterRef in filterRefs}
418 
419  lutCat = self._fgcmMakeLut(camera,
420  opticsDataRef,
421  sensorDataRefDict,
422  filterDataRefDict)
423  butlerQC.put(lutCat, outputRefs.fgcmLookUpTable)
424 

Member Data Documentation

◆ ConfigClass

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

Definition at line 357 of file fgcmMakeLut.py.

◆ fgcmLutMaker

lsst.fgcmcal.fgcmMakeLut.FgcmMakeLutTask.fgcmLutMaker

Definition at line 465 of file fgcmMakeLut.py.

◆ RunnerClass

lsst.fgcmcal.fgcmMakeLut.FgcmMakeLutTask.RunnerClass = FgcmMakeLutRunner
static

Definition at line 358 of file fgcmMakeLut.py.


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