| | 106 | |
| | 107 | === flatcorr === |
| | 108 | |
| | 109 | The flat-field correction system uses 'flatcorr' to interact with the ippdb. A flat-field correction run is defined for a set of exposures which have been observed with sufficient dithering to usefully measure the flat-field errors as a function of position. A flatcorr run defines a group of exposures that are to be processed first through chip, then camera, then addstar. A flat-field correction run can be defined either with a -definebyquery, which selects the raw exposures that should be used for the analysis, or with a -definerun command. The latter sets up an empty run which must be populated with -addchip calls (one addchip per exposure to be defined). In this case, the exposures should already be defined in a chipRun, and they may have been either completed in the chip analysis or not. |
| | 110 | |
| | 111 | The flatcorr tasks monitor the associated chipRuns and, when any are completed, migrates them to the table of associated cameraRuns. This is done with the flatcorr -advancecamera command. It is also possible to add existing cameraRuns to the flatcorrRun with -addcamera. The flatcorr tasks also monitor the cameraRuns and generate addstarRuns as they complete (using the -advanceaddstar command). |
| | 112 | |
| | 113 | When using -definerun, the flatcorrRun is generated in a state of 'reg'. This must be changed to 'new' before the processing will operate on the flatcorrRun. this may be done with the -updaterun command |