TABLE detRun
TITLE detRun
FILE  detRun.php
MENU  ipp.detrend.dat

ARGS  ARG1 detRunSummary.det_id=$det_id

ARGS  ARG2 detInputExp.det_id=$det_id
ARGS  ARG2 detInputExp.iteration=$iteration

ARGS  ARG3 detProcessedExp.det_id=$det_id

ARGS  ARG4 detResidExp.det_id=$det_id
ARGS  ARG4 detResidExp.iteration=$iteration

ARGS  ARG5 detStackedImfile.det_id=$det_id
ARGS  ARG6 detNormalizedImfile.det_id=$det_id
ARGS  ARG7 detRegisteredImfile.det_id=$det_id

#     field       size  format  name         show       link to                   extras
FIELD det_id,        5, %s,     det ID,      value,     detRunSummary.php,        ARG1
FIELD iteration,     3, %s,     iter
FIELD det_type,     12, %s,     type
FIELD state,         5, %s,     state
FIELD *,             5, %s,     IN,          value=IN,   detInputExp.php,          ARG2
FIELD *,             5, %s,     P,           value=P,   detProcessedExp.php,      ARG3
FIELD *,             5, %s,     D,           value=D,   detResidExp.php,          ARG4
FIELD *,             5, %s,     S,           value=S,   detStackedImfile.php,     ARG5
FIELD *,             5, %s,     N,           value=N,   detNormalizedImfile.php,  ARG6
FIELD *,             5, %s,     R,           value=R,   detRegisteredImfile.php,  ARG7
FIELD mode,          5, %s,     mode
FIELD filter,        5, %s,     filter     
FIELD registered,   19, %s,     registered 
#FIELD use_begin,    19, %s,     use_begin  
#FIELD use_end,      19, %s,     use_end    
FIELD time_begin,    19, %s,     time_begin  
FIELD time_end,      19, %s,     time_end    
FIELD airmass_min,   5, %.2f,   min_airmass    
FIELD airmass_max,   5, %.2f,   max     
FIELD exp_time_min,  5, %.2f,   min_exp_time   
FIELD exp_time_max,  5, %.2f,   max 
FIELD ccd_temp_min,  5, %.2f,   min_ccd_temp   
FIELD ccd_temp_max,  5, %.2f,   max    
FIELD posang_min,    5, %.2f,   min_posang     
FIELD posang_max,    5, %s,     max      

TD_CLASS list_off $state == 'drop'
TD_CLASS list_run $state == 'run'
