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=$det_id
ARGS  ARG1 detStackedImfile.iteration=$iteration
ARGS  ARG1 camera=$detRun.camera
ARGS  ARG1 basename=$detStackedImfile.uri

#     field         size  format  name      show  link to     extras
FIELD detStackedImfile.det_id,         7,  %s,    det_id
FIELD detStackedImfile.iteration,      5,  %s,    iteration
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,           20,  %s,    uri
# FIELD recipe, 20,   recipe

TD_CLASS list_off $fault > 0

TAIL PHP insert_log ('LOG.EXP');
