lsst.pipe.tasks
tickets.DM-23835-g425218d84a
|
Measure the PSF. More...
Public Member Functions | |
def | __init__ (self, schema=None, **kwargs) |
Create the detection task. More... | |
def | run (self, exposure, sources, expId=0, matches=None) |
Measure the PSF. More... | |
def | usesMatches (self) |
Public Attributes | |
candidateKey | |
usedKey | |
Static Public Attributes | |
ConfigClass | |
Measure the PSF.
A task that selects stars from a catalog of sources and uses those to measure the PSF.
The star selector is a subclass of lsst.meas.algorithms.BaseStarSelectorTask and the PSF determiner is a sublcass of lsst.meas.algorithms.BasePsfDeterminerTask
Create the detection task. Most arguments are simply passed onto pipe.base.Task.
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.
Measure the PSF.
[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. |
See MeasurePsfConfig.
The command line task interface supports a flag -d
to import debug.py from your PYTHONPATH
; see Using lsstDebug to control debugging output for more about debug.py files.
display
Additionally you can enable any debug outputs that your chosen star selector and psf determiner support.
To investigate the Debug variables, put something like
into your debug.py file and run measurePsfTask.py with the –debug
flag.
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.
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.
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.
[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. |
Definition at line 240 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 333 of file measurePsf.py.
lsst.pipe.tasks.measurePsf.MeasurePsfTask.candidateKey |
Definition at line 220 of file measurePsf.py.
|
static |
Definition at line 202 of file measurePsf.py.
lsst.pipe.tasks.measurePsf.MeasurePsfTask.usedKey |
Definition at line 225 of file measurePsf.py.