TABLE detNormalizedExp, rawExp
TITLE detNormalizedExp
FILE  detNormalizedExp.php
MENU  ipp.detrend.dat

# the following WHERE clauses are added to all queries joined by AND
WHERE detNormalizedExp.exp_tag = rawExp.exp_tag

# define image names to be used below
# IMAGE VAR basename filerule camera class_id
IMAGE JPEG2 $detNormalizedExp.path_base PPIMAGE.JPEG2 $rawExp.camera NONE

ARGS  ARG2 det_id=$detNormalizedExp.det_id
ARGS  ARG2 iteration=$detNormalizedExp.iteration
ARGS  ARG2 exp_tag=$detNormalizedExp.exp_tag
ARGS  ARG2 camera=$rawExp.camera
ARGS  ARG2 basename=$detNormalizedExp.path_base

#     field        		      size     name     show          link to                  extras
FIELD detNormalizedExp.det_id,        7,     det_id
FIELD detNormalizedExp.bg,            8,     backgnd
FIELD detNormalizedExp.bg_mean_stdev, 8,     [stdev]
FIELD detNormalizedExp.bg_stdev,      8,     stdev
FIELD detNormalizedExp.iteration,     5,     iteration
FIELD *,             		      8,     image,     image=JPEG2,  detNormalizedImfile.php, ARG2
FIELD detNormalizedExp.path_base,     20,    path_base, none
