TABLE detStackedImfile, detRun
TITLE detStackedImfile
FILE  detStackedImfile.php
MENU  ipp.imfiles.dat

WHERE detStackedImfile.det_id = detRun.det_id

# XXX change uri to path_base in db
ARGS  ARG1 detStackedImfile.det_id=$detStackedImfile.det_id
ARGS  ARG1 detStackedImfile.iteration=$detStackedImfile.iteration
ARGS  ARG1 detStackedImfile.class_id=$detStackedImfile.class_id
ARGS  ARG1 camera=$detRun.camera
ARGS  ARG1 basename=$detStackedImfile.uri
ARGS  ARG1 class=$detStackedImfile.class_id

#     field                         size  format  name        show  link to     extras
FIELD detStackedImfile.det_id,         7,  %s,    det_id
FIELD detStackedImfile.iteration,      5,  %s,    iter
FIELD detStackedImfile.class_id,       8,  %s,    class_id,   value, detStackedImfile.php, ARG1
FIELD detStackedImfile.fault,          5,  %d,    fault
FIELD detStackedImfile.bg,             8,  %f,    backgnd
FIELD detStackedImfile.bg_stdev,       8,  %f,    stdev
FIELD detStackedImfile.bg_mean_stdev,  8,  %f,    [stdev]
FIELD detStackedImfile.uri,           10,  %s,    uri
FIELD detRun.camera,                  10, %s,     camera, none

TD_CLASS list_off $fault > 0

TAIL PHP insert_log ('LOG.IMFILE');
