= Detrend system = * Queuing * Processing * Stacking * Normalization * Residuals * Rejection * Registration = Detrend filenames = All detrends generated using the dettool/pantasks system are created with the following filename structure: {{{ WORKDIR/CAMERA.DET_TYPE.DET_ID/CAMERA.DET_TYPE.STAGE.DET_ID.ITERATION.CLASS_ID.fits }}} These components are as follows: * WORKDIR : user specified (at time detRun queued) workdir * CAMERA : camera for the detrend to be created (specified when queued) * DET_TYPE : type of detrend generated (see below) * DET_ID : database id for this detRun * STAGE : generally "norm", as the normalized detrend is used in most cases. * ITERATION : which rejection iteration this detrend is from. * CLASS_ID : class_id that this detrend matches. = Detrend types = * DARK. Detrend to remove the camera dark current. * DARKTEST. This is an intermediate testing version of a DARK. It is constructed based on the same recipes as a regular DARK, but will not be accidentally selected for processing when finished (as processing only selects a valid DARK detrend). However, as detrends are often constructed with this det_type (and then converted to a DARK, or registered as a DARK), filenames often contain this string. * VIDEODARK. This is a special (currently theoretical) DARK that is constructed from frames that have had video data taken on a cell. This changes the electronic response of the detector, resulting in a different dark current on the images. * FLAT. Detrend to remove the pixel-to-pixel response of the detector. * FLATTEST. Similar to a DARKTEST above, this detrend is a FLAT that was constructed with a parallel name to avoid being accidentally used in processing. * MASK. Manually constructed mask to remove bad areas of the detector. * VIDEOMASK. Similar to a VIDEODARK above, but instead of correcting regions with discrepant dark current, these regions are masked out. * CTEMASK. Automatically constructed mask that contains information about regions with Charge Transfer Efficiency issues. * FRINGE. Detrend to remove fringing patterns in the infrared. * LINEARITY. Manually constructed detrend listing the measured linearity response at low flux levels. * NOISEMAP. Detrend containing the read noise values as a function of detector position. The regular noisemaps can be generated through the dettool system. We currently use boosted noisemaps that require subsequent processing to add these boosts. = Using detselect = == -search == == -select == = Creation process = = Current detrends =