Bias construction
Definition at line 754 of file constructCalibs.py.
def lsst.pipe.drivers.constructCalibs.CalibTask.addMissingKeys |
( |
|
self, |
|
|
|
dataId, |
|
|
|
butler, |
|
|
|
missingKeys = None , |
|
|
|
calibName = None |
|
) |
| |
|
inherited |
def lsst.pipe.drivers.constructCalibs.BiasTask.applyOverrides |
( |
|
cls, |
|
|
|
config |
|
) |
| |
def lsst.pipe.drivers.constructCalibs.CalibTask.batchWallTime |
( |
|
cls, |
|
|
|
time, |
|
|
|
parsedCmd, |
|
|
|
numCores |
|
) |
| |
|
inherited |
def lsst.pipe.drivers.constructCalibs.CalibTask.combine |
( |
|
self, |
|
|
|
cache, |
|
|
|
struct, |
|
|
|
outputId |
|
) |
| |
|
inherited |
Combine multiple exposures of a particular CCD and write the output.
Only the slave nodes execute this method.
- Parameters
-
cache | Process pool cache |
struct | Parameters for the combination, which has the following components:
- ccdName Name tuple for CCD
- ccdIdList List of data identifiers for combination
- scales Scales to apply (expScales are scalings for each exposure, ccdScale is final scale for combined image)
|
outputId | Data identifier for combined image (exposure part only) |
Definition at line 645 of file constructCalibs.py.
def lsst.pipe.drivers.constructCalibs.CalibTask.getFilter |
( |
|
self, |
|
|
|
butler, |
|
|
|
dataId |
|
) |
| |
|
inherited |
def lsst.pipe.drivers.constructCalibs.CalibTask.getMjd |
( |
|
self, |
|
|
|
butler, |
|
|
|
dataId, |
|
|
|
timescale = dafBase.DateTime.UTC |
|
) |
| |
|
inherited |
Determine the Modified Julian Date (MJD; in TAI) from a data identifier
Definition at line 452 of file constructCalibs.py.
def lsst.pipe.drivers.constructCalibs.CalibTask.getOutputId |
( |
|
self, |
|
|
|
expRefList, |
|
|
|
calibId |
|
) |
| |
|
inherited |
Generate the data identifier for the output calib.
The mean date and the common filter are included, using keywords from the configuration. The CCD-specific part is not included in the data identifier.
- Parameters
-
expRefList | List of data references at exposure level |
calibId | Data identifier elements for the calib provided by the user |
- Returns
- data identifier
Definition at line 417 of file constructCalibs.py.
def lsst.pipe.drivers.constructCalibs.CalibTask.interpolateNans |
( |
|
self, |
|
|
|
image |
|
) |
| |
|
inherited |
Interpolate over NANs in the combined image
NANs can result from masked areas on the CCD. We don't want them getting
into our science images, so we replace them with the median of the image.
Definition at line 717 of file constructCalibs.py.
def lsst.pipe.drivers.constructCalibs.CalibTask.process |
( |
|
self, |
|
|
|
cache, |
|
|
|
ccdId, |
|
|
|
outputName = "postISRCCD" |
|
) |
| |
|
inherited |
Process a CCD, specified by a data identifier.
After processing, optionally returns a result (produced by the 'processResult' method) calculated from the processed exposure. These results will be gathered by the master node, and is a means for coordinated scaling of all CCDs for flats, etc.
Only slave nodes execute this method.
- Parameters
-
cache | Process pool cache |
ccdId | Data identifier for CCD |
outputName | Output dataset name for butler |
- Returns
- result from 'processResult'
Definition at line 539 of file constructCalibs.py.
def lsst.pipe.drivers.constructCalibs.CalibTask.processResult |
( |
|
self, |
|
|
|
exposure |
|
) |
| |
|
inherited |
Extract processing results from a processed exposure
This method generates what is gathered by the master node.
This can be a background measurement or similar for scaling
flat-fields. It must be picklable!
Only slave nodes execute this method.
Definition at line 597 of file constructCalibs.py.
def lsst.pipe.drivers.constructCalibs.CalibTask.processSingle |
( |
|
self, |
|
|
|
dataRef |
|
) |
| |
|
inherited |
Process a single CCD, specified by a data reference
Generally, this simply means doing ISR.
Only slave nodes execute this method.
Definition at line 574 of file constructCalibs.py.
def lsst.pipe.drivers.constructCalibs.CalibTask.processWrite |
( |
|
self, |
|
|
|
dataRef, |
|
|
|
exposure, |
|
|
|
outputName = "postISRCCD" |
|
) |
| |
|
inherited |
Write the processed CCD.
We need to write these out because we can't hold them all in memory at once.
Only slave nodes execute this method.
- Parameters
-
dataRef | Data reference |
exposure | CCD exposure to write |
outputName | Output dataset name for butler. |
Definition at line 583 of file constructCalibs.py.
def lsst.pipe.drivers.constructCalibs.CalibTask.recordCalibInputs |
( |
|
self, |
|
|
|
butler, |
|
|
|
calib, |
|
|
|
dataIdList, |
|
|
|
outputId |
|
) |
| |
|
inherited |
Record metadata including the inputs and creation details.
This metadata will go into the FITS header.
- Parameters
-
butler | Data butler |
calib | Combined calib exposure. |
dataIdList | List of data identifiers for calibration inputs |
outputId | Data identifier for output |
Definition at line 687 of file constructCalibs.py.
def lsst.pipe.drivers.constructCalibs.CalibTask.run |
( |
|
self, |
|
|
|
expRefList, |
|
|
|
butler, |
|
|
|
calibId |
|
) |
| |
|
inherited |
Construct a calib from a list of exposure references.
This is the entry point, called by the TaskRunner.__call__
Only the master node executes this method.
- Parameters
-
expRefList | List of data references at the exposure level |
butler | Data butler |
calibId | Identifier dict for calib |
Definition at line 372 of file constructCalibs.py.
def lsst.pipe.drivers.constructCalibs.CalibTask.scale |
( |
|
self, |
|
|
|
ccdIdLists, |
|
|
|
data |
|
) |
| |
|
inherited |
Determine scaling across CCDs and exposures.
This is necessary mainly for flats, so as to determine a consistent scaling across the entire focal plane. This implementation is simply a placeholder.
Only the master node executes this method.
- Parameters
-
ccdIdLists | Dict of data identifier lists for each CCD tuple |
data | Dict of lists of returned data for each CCD tuple |
- Returns
- dict of Struct(ccdScale: scaling for CCD, expScales: scaling for each exposure ) for each CCD tuple
Definition at line 608 of file constructCalibs.py.
def lsst.pipe.drivers.constructCalibs.CalibTask.scatterCombine |
( |
|
self, |
|
|
|
pool, |
|
|
|
outputId, |
|
|
|
ccdIdLists, |
|
|
|
scales |
|
) |
| |
|
inherited |
Scatter the combination of exposures across multiple nodes.
In this case, we can only scatter across as many nodes as there are CCDs.
Only the master node executes this method.
- Parameters
-
pool | Process pool |
outputId | Output identifier (exposure part only) |
ccdIdLists | Dict of data identifier lists for each CCD name |
scales | Dict of structs with scales, for each CCD name |
Definition at line 627 of file constructCalibs.py.
def lsst.pipe.drivers.constructCalibs.CalibTask.scatterProcess |
( |
|
self, |
|
|
|
pool, |
|
|
|
ccdIdLists |
|
) |
| |
|
inherited |
Scatter the processing among the nodes.
We scatter each CCD independently (exposures aren't grouped together), to make full use of all available processors. This necessitates piecing everything back together in the same format as ccdIdLists afterwards.
Only the master node executes this method.
- Parameters
-
pool | Process pool |
ccdIdLists | Dict of data identifier lists for each CCD name |
- Returns
- Dict of lists of returned data for each CCD name
Definition at line 507 of file constructCalibs.py.
def lsst.pipe.drivers.constructCalibs.CalibTask.updateMetadata |
( |
|
self, |
|
|
|
calibImage, |
|
|
|
exposureTime, |
|
|
|
darkTime = None , |
|
|
|
kwargs |
|
) |
| |
|
inherited |
Update the metadata from the VisitInfo.
- Parameters
-
calibImage | The image whose metadata is to be set |
exposureTime | The exposure time for the image |
darkTime | The time since the last read (default: exposureTime) |
Definition at line 491 of file constructCalibs.py.
def lsst.pipe.drivers.constructCalibs.CalibTask.write |
( |
|
self, |
|
|
|
butler, |
|
|
|
exposure, |
|
|
|
dataId |
|
) |
| |
|
inherited |
Write the final combined calib.
Only the slave nodes execute this method
- Parameters
-
butler | Data butler |
exposure | CCD exposure to write |
dataId | Data identifier for output |
Definition at line 732 of file constructCalibs.py.
string lsst.pipe.drivers.constructCalibs.BiasTask.calibName = "bias" |
|
static |
lsst.pipe.drivers.constructCalibs.BiasTask.ConfigClass = BiasConfig |
|
static |
float lsst.pipe.drivers.constructCalibs.BiasTask.exposureTime = 0.0 |
|
static |
string lsst.pipe.drivers.constructCalibs.BiasTask.filterName = "NONE" |
|
static |
The documentation for this class was generated from the following file: