44CalibrateTask
55#############
66
7+ .. _lsst.pipe.tasks.calibrate.CalibrateTask-summary :
8+
9+ Processing summary
10+ ==================
11+
12+ Given an exposure with a good PSF model and aperture correction map
13+ (e.g. as provided by ``CharacterizeImageTask ``), perform the following
14+ operations:
15+
16+ - Run detection and measurement
17+ - Run astrometry subtask to fit an improved WCS
18+ - Run photoCal subtask to fit the exposure's photometric zero-point
19+
20+ Invoking the Task
21+
22+ If you want this task to unpersist inputs or persist outputs, then call
23+ the `runDataRef ` method (a wrapper around the `run ` method).
24+
25+ If you already have the inputs unpersisted and do not want to persist the
26+ output then it is more direct to call the `run ` method:
27+
28+ Quantities set in exposure Metadata
29+
30+ Exposure metadata
31+
32+ .. code-block :: none
33+
34+ MAGZERO_RMS MAGZERO's RMS == sigma reported by photoCal task
35+ ERO_NOBJ Number of stars used == ngood reported by photoCal
36+ task
37+ COLORTERM1 (always 0.0)
38+ COLORTERM2 (always 0.0)
39+ COLORTERM3 (always 0.0)
40+
741 .. _lsst.pipe.tasks.calibrate.CalibrateTask-api :
842
943Python API summary
@@ -24,3 +58,45 @@ Configuration fields
2458====================
2559
2660.. lsst-task-config-fields :: lsst.pipe.tasks.calibrate.CalibrateTask
61+
62+ .. _lsst.pipe.tasks.calibrate.CalibrateTask-debug :
63+
64+ Debugging
65+ =========
66+
67+ The `lsst.pipe.base.cmdLineTask.CmdLineTask ` command line task
68+ interface supports a flag
69+ `--debug ` to import `debug.py ` from your `$PYTHONPATH `; see ``baseDebug ``
70+ for more about `debug.py `.
71+
72+ CalibrateTask has a debug dictionary containing one key:
73+
74+ .. code-block :: none
75+
76+ calibrate
77+ frame (an int; <= 0 to not display) in which to display the exposure,
78+ sources and matches. See ``lsst.meas.astrom.displayAstrometry`` for
79+ the meaning of the various symbols.
80+
81+ For example, put something like:
82+
83+ .. code-block :: py
84+
85+ import lsstDebug
86+ def DebugInfo (name ):
87+ di = lsstDebug.getInfo(name) # N.b. lsstDebug.Info(name) would
88+ # call us recursively
89+ if name == " lsst.pipe.tasks.calibrate" :
90+ di.display = dict (
91+ calibrate = 1 ,
92+ )
93+
94+ return di
95+
96+ lsstDebug.Info = DebugInfo
97+
98+ into your `debug.py ` file and run `calibrateTask.py ` with the `--debug `
99+ flag.
100+
101+ Some subtasks may have their own debug variables; see individual Task
102+ documentation.
0 commit comments