TABLE camProcessedExp, chipProcessedExp, rawExp
TITLE Camera-Level Processed Exposures
FILE  camProcessedExp.php
MENU  ipp.science.dat

WHERE camProcessedExp.chip_id = chipProcessedExp.chip_id
WHERE chipProcessedExp.exp_tag = rawExp.exp_tag

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

# show all chips for this camera exposure, summary stats from the camera tables
ARGS  ARG1  camera=$rawExp.camera
ARGS  ARG1  basename=$camProcessedExp.path_base
ARGS  ARG1  exp_tag=$chipProcessedExp.exp_tag

#     field                           size  name       show        link to                  extras
FIELD chipProcessedExp.exp_tag,       15,   Exposure,  value
FIELD *, 	     		      8,    image,     image=JPEG, chipProcessedImfile.php, ARG1
FIELD camProcessedExp.bg,	      8,    backgnd,   value
FIELD camProcessedExp.bg_mean_stdev,  8,    [stdev],   value
FIELD camProcessedExp.bg_stdev,       8,    stdev,     value
FIELD camProcessedExp.path_base,      20,   path_base, value
FIELD camProcessedExp.uri,            20,   uri,       value
