lsst.obs.decam gf748b16de2+38f19db968
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
lsst.obs.decam.rawFormatter.DarkEnergyCameraRawFormatter Class Reference
Inheritance diagram for lsst.obs.decam.rawFormatter.DarkEnergyCameraRawFormatter:
lsst.obs.decam.rawFormatter.DarkEnergyCameraCPCalibFormatter

Public Member Functions

 getDetector (self, id)
 
 readMetadata (self)
 
 readImage (self)
 

Static Public Attributes

 translatorClass = astro_metadata_translator.DecamTranslator
 
 filterDefinitions = DarkEnergyCamera.filterDefinitions
 
bool wcsFlipX = True
 

Protected Member Functions

 _scanHdus (self, filename, detectorId)
 
 _determineHDU (self, detectorId)
 

Member Function Documentation

◆ _determineHDU()

lsst.obs.decam.rawFormatter.DarkEnergyCameraRawFormatter._determineHDU (   self,
  detectorId 
)
protected
Determine the correct HDU number for a given detector id.

Parameters
----------
detectorId : `int`
    The detector id to search for.

Returns
-------
index : `int`
    The index of the HDU with the requested data.
metadata : `lsst.daf.base.PropertyList`
    The metadata read from the header for that detector id.

Raises
------
ValueError
    Raised if detectorId is not found in any of the file HDUs

Reimplemented in lsst.obs.decam.rawFormatter.DarkEnergyCameraCPCalibFormatter.

◆ _scanHdus()

lsst.obs.decam.rawFormatter.DarkEnergyCameraRawFormatter._scanHdus (   self,
  filename,
  detectorId 
)
protected
Scan through a file for the HDU containing data from one detector.

Parameters
----------
filename : `str`
    The file to search through.
detectorId : `int`
    The detector id to search for.

Returns
-------
index : `int`
    The index of the HDU with the requested data.
metadata: `lsst.daf.base.PropertyList`
    The metadata read from the header for that detector id.

Raises
------
ValueError
    Raised if detectorId is not found in any of the file HDUs

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