Definition at line 56 of file measurePsf.py.
def lsst.pipe.tasks.measurePsf.MeasurePsfTask.__init__ |
( |
|
self, |
|
|
|
schema = None , |
|
|
|
kwargs |
|
) |
| |
Create the detection task.
Most arguments are simply passed onto pipe.base.Task.
- Parameters
-
schema | An lsst::afw::table::Schema used to create the output lsst.afw.table.SourceCatalog |
**kwargs | Keyword arguments passed to lsst.pipe.base.task.Task.__init__. |
If schema is not None, 'calib.psf.candidate' and 'calib.psf.used' fields will be added to identify which stars were employed in the PSF estimation.
- Note
- This task can add fields to the schema, so any code calling this task must ensure that these fields are indeed present in the input table.
Definition at line 205 of file measurePsf.py.
def lsst.pipe.tasks.measurePsf.MeasurePsfTask.run |
( |
|
self, |
|
|
|
exposure, |
|
|
|
sources, |
|
|
|
expId = 0 , |
|
|
|
matches = None |
|
) |
| |
Measure the PSF.
- Parameters
-
[in,out] | exposure | Exposure to process; measured PSF will be added. |
[in,out] | sources | Measured sources on exposure; flag fields will be set marking stars chosen by the star selector and the PSF determiner if a schema was passed to the task constructor. |
[in] | expId | Exposure id used for generating random seed. |
[in] | matches | A list of lsst.afw.table.ReferenceMatch objects (i.e. of lsst.afw.table.Match with first being of type lsst.afw.table.SimpleRecord and second type lsst.afw.table.SourceRecord — the reference object and detected object respectively) as returned by e.g. the AstrometryTask. Used by star selectors that choose to refer to an external catalog. |
- Returns
- a pipe.base.Struct with fields:
- psf: The measured PSF (also set in the input exposure)
- cellSet: an lsst.afw.math.SpatialCellSet containing the PSF candidates as returned by the psf determiner.
Definition at line 241 of file measurePsf.py.
def lsst.pipe.tasks.measurePsf.MeasurePsfTask.usesMatches |
( |
|
self | ) |
|
Return True if this task makes use of the "matches" argument to the run method
Definition at line 344 of file measurePsf.py.
lsst.pipe.tasks.measurePsf.MeasurePsfTask.candidateKey |
lsst.pipe.tasks.measurePsf.MeasurePsfTask.reservedKey |
lsst.pipe.tasks.measurePsf.MeasurePsfTask.usedKey |
The documentation for this class was generated from the following file: