Index: unk/ippTools/doc/dettest.sh
===================================================================
--- /trunk/ippTools/doc/dettest.sh	(revision 13411)
+++ 	(revision )
@@ -1,120 +1,0 @@
-#!/bin/sh
-
-#
-# the default value for -iteration (e.g., you didn't specify -iteration) is 0
-# it may make sense to make it default to the latest iteration number for a
-# given det run
-#
-# so of the sanity checking still needs to be improved/tested 
-#
-# also worth noting is that the validity of the iteration value isn't yet
-# checked
-#
-
-# create a new detrun
-det_id=`dettool -define -exp_id 1 -exp_id 2 -exp_id 3 -det_type flat`
-
-# list detruns (active only?)
-dettool -runs
-
-# get detrun status (iteration #)
-
-# list the input exposures in a detRun
-dettool -input -det_id $det_id
-
-# list raw imfiles
-dettool -raw -det_id $det_id
-
-# register a processed imfile
-dettool -addprocessed -det_id $det_id ...
-
-# processed imfiles should mask out raw imfiles
-dettool -raw -det_id $det_id
-
-# list processed imfiles 
-dettool -processed -det_id $det_id [-iteration]
-
-# list processed imfiles for a chip (all or none)
-dettool -processed -chip -det_id $det_id [-iteration]
-
-# list all processed imfiles (even those that have been stacked)
-dettool -processed -unmask -det_id $det_id [-iteration]
-
-# register a stacked imfile
-dettool -addstacked -det_id $det_id [-iteration] -class_id ...
-
-# stacked imfiles should mask out processed imfiles
-dettool -processed -det_id $det_id [-iteration]
-
-# list stacked imfiles
-dettool -stacked -det_id $det_id [-iteration]
-# list stacked imfiles only for complete frames
-dettool -stackedframe -det_id $det_id [-iteration]
-
-# register a normalized imfile
-dettool -addnormalized -det_id $det_id [-iteration] ...
-
-# normalized imfiles should mask out stacked imfiles
-dettool -stacked -det_id $det_id [-iteration]
-# does a single normalized imfile mask out the entire frame?
-dettool -stackedframe -det_id $det_id [-iteration]
-
-# list normalized imfiles 
-dettool -normalized -det_id $det_id[ -iteration]
-
-# register a residual result
-dettool -addresid -det_id $det_id [-iteration] -exp_id ... -class_id ... -stats ...
-
-# residuals mask out normalized imfiles
-dettool -normalized -det_id $det_id [-iteration]
-
-# list residual imfile analyses
-dettool -resid -det_id $det_id [iteration] -exp_id ... -class_id ... -stats ...
-
-# register a residual exp XXX not sanity checked against all input class_ids having a resid registered
-dettool -addresidexp -det_id $det_id [iteration] -stats ... -accept
-
-# list residual exps
-dettool -residexp -det_id $det_id [iteration]  
-
-# register a/the master
-dettool -declaremasterframe -det_id $det_id [-iteration ...]
-
-# list masters
-dettool -masterframe -det_id
-
-# list imfiles in a master frame
-dettool -master -det_id $det_id [-iteration ...]
-
-# start another iteration but use only these input exps (must be a subset of
-# the original input exps)
-dettool -rerun -det_id $det_id -exp_id 1 -exp_id 2 -exp_id 3 
-
-
-# always print out the det_type in the output for imfiles
-
-# -addresid -uri
-# -addresidexp -uri (big/small jpeg)
-
-# -updatedresid for -accept
-# -masterframe needs 'class'
-# -nukemaster
-
-pxinject
-
-- class is currently in db at the imfile level, not the exp level.
-
-dettool
-
-- list of det_ids without registered masters
-- -chip option is a bad name
-
-for normalize to resid, support script needs to run different commands on basis
-of type
-
-
-# need a way to quiery live det runs
-# add det run state tracking (alive or dead)
-# die at the end of a det run... -rerun makes it live again ??
-# -processed -chip (no -det_id) returns a list of ready det_id/class_id pairs
-
Index: unk/ippTools/doc/p0tools.sh
===================================================================
--- /trunk/ippTools/doc/p0tools.sh	(revision 13411)
+++ 	(revision )
@@ -1,71 +1,0 @@
-
-## PanTasks scripts for Phase 0
-
-# tasks: p0ready p0update p0cleanup
-#
-# queues: 
-#   p0pending: (expID) (cameraID) (state)
-#
-# globals: 
-
-# p0pending : search for images to be processed
-task	       p0pending
-  command      p0search -pending
-  host         local
-
-  # timeout shorter than exec so jobs do not build up
-  periods      -exec     5
-  periods      -poll     1
-  periods      -timeout  4
-
-  # success
-  task.exit    0
-    local i Nstdout
-    # keep only new, unique entries (URL is key)
-    queuesize stdout -var Nstdout
-    for i 0 $Nstdout
-      queuepop stdout -var line
-      queuepush p0pending -uniq -key 0 "$line new"
-    end
-  end
-end
-
-# p0update : submit an exposure to be updated
-task	       p0update
-  periods      -exec 1
-  periods      -timeout 10
-
-  task.exec
-    local Npending
-    queuesize  p0pending -var Npending
-    if ($Npending == 0) break
-
-    queuepop p0pending -var line -key 2 new
-    if ("$line" == "NULL") break
-
-    list tmp -split $line
-    $expID  = $tmp:0
-    $camera = $tmp:1
-    queuepush p0pending "$expID $camera run"
-
-    host any
-    command p0search -update $expID $camera
-  end
-
-  # success
-  task.exit    0
-    queueinit stdout
-    queuepush p0pending $taskargs:0 $taskargs:1 done
-  end
-end
-
-# p0update : search for images to be processed
-task	       p0cleanup
-  command      p0search -cleanup
-  host         local
-
-  # timeout shorter than exec so jobs do not build up
-  periods      -exec     30
-  periods      -poll     1
-  periods      -timeout  10
-end
Index: unk/ippTools/doc/p1tools.sh
===================================================================
--- /trunk/ippTools/doc/p1tools.sh	(revision 13411)
+++ 	(revision )
@@ -1,72 +1,0 @@
-
-## PanTasks scripts for Phase 1
-
-# tasks: p1pending p1astro p1done
-#
-# queues: 
-#   p1pending: (expID) (version) (cameraID) (state)
-#
-# globals: 
-
-# p1pending : search for images to be processed
-task	       p1pending
-  command      p1search -pending
-  host         local
-
-  # timeout shorter than exec so jobs do not build up
-  periods      -exec     5
-  periods      -poll     1
-  periods      -timeout  4
-
-  # success
-  task.exit    0
-    local i Nstdout
-    # keep only new, unique entries (URL is key)
-    queuesize stdout -var Nstdout
-    for i 0 $Nstdout
-      queuepop stdout -var line
-      queuepush p1pending -uniq -key 0 "$line new"
-    end
-  end
-end
-
-# p1update : submit an exposure to be updated
-task	       p1astro
-  periods      -exec 1
-  periods      -timeout 10
-
-  task.exec
-    local expID version camera Npending
-    queuesize  p1pending -var Npending
-    if ($Npending == 0) break
-
-    queuepop p1pending -var line -key 2 new
-    if ("$line" == "NULL") break
-
-    list tmp -split $line
-    $expID  = $tmp:0
-    $version = $tmp:1
-    $camera = $tmp:2
-    queuepush p1pending "$expID $version $camera run"
-
-    host any
-    command p1astro $expID $version $camera
-  end
-
-  # success
-  task.exit    0
-    queueinit stdout
-    queuepush p1pending $taskargs:0 $taskargs:1 $taskargs:2 done
-  end
-end
-
-# p1update : search for images to be processed
-task	       p1done
-  command      p1search -done
-  host         local
-
-  # timeout shorter than exec so jobs do not build up
-  periods      -exec     30
-  periods      -poll     1
-  periods      -timeout  10
-end
Index: unk/ippTools/doc/p2tools.sh
===================================================================
--- /trunk/ippTools/doc/p2tools.sh	(revision 13411)
+++ 	(revision )
@@ -1,137 +1,0 @@
-
-## PanTasks scripts for Phase 2
-
-# tasks: p2pending p2update ppImage
-#
-# queues: 
-#   p2pending: expID class classID url
-#
-# globals: 
-
-queueinit stdout
-queueinit stderr
-queueinit p2pending
-
-macro p2parse
-  if ($0 != 7)
-    echo "usage: p2parse (key) (expID) (class) (classID) (url) (state)"
-    break
-  end
-  $expID   = $2
-  $class   = $3
-  $classID = $4
-  $url     = $5
-  $key     = $expID.$classID
-end
-
-# p2pending : search for images to be processed
-task	       p2pending
-  command      p2search.sh -pending
-  host         local
-
-  # timeout shorter than exec so jobs do not build up
-  periods      -exec     5
-  periods      -poll     1
-  periods      -timeout  4
-
-  # success
-  task.exit    0
-    local i Nstdout
-
-    # pop off the header line
-    queuepop stdout
-
-    # keep only new, unique entries (URL is key)
-    queuesize stdout -var Nstdout
-    for i 0 $Nstdout
-      queuepop stdout -var line
-      p2parse unknown $line new
-      queuepush p2pending -uniq -key 0 "$key $line new"
-    end
-    echo "loaded p2pending, current state:"
-    queueprint p2pending
-  end
-end
-
-# ppImage : submit an image for processing by ppImage
-task	       ppImage
-  periods      -exec 1
-  periods      -timeout 120
-
-  task.exec
-    local Npending
-    queuesize  p2pending -var Npending
-    if ($Npending == 0) break
-
-    # add in system status interruptions later
-    # if ($network == 0) break
-    
-    queuepop p2pending -var line -key 5 new
-    if ("$line" == "NULL") break
-    p2parse $line
-
-    echo "new ppImaage: $key $expID $class $classID $url run"
-    queuepush p2pending "$key $expID $class $classID $url run"
-
-    # need to decide real name for this function
-    # $host = `chip.host $camera $chip`
-    # host $host
-
-    host local
-    echo command ppImage.sh $key $url $classID
-    command ppImage.sh $key $url $classID
-  end
-
-  # success
-  task.exit    0
-    # if ppImage updates the DB:
-    echo "done with $taskarg:1"
-    queueinit stdout
-    queuepop p2pending -key 0 $taskarg:1 -var line
-    echo "got line: $line"
-
-    if ("$line" == "NULL") 
-      echo "missing entry in p2pending queue?"
-      break
-    end
-
-    p2parse $line
-    queuepush p2pending "$key $expID $class $classID $url done"
-    echo queuepush p2pending "$key $expID $class $classID $url done"
-    
-    # if ppImage does NOT update the DB:
-  end
-
-end
-
-# p2update : search for images to be processed
-task	       p2update
-  command      p2search -update
-  host         local
-
-  # timeout shorter than exec so jobs do not build up
-  periods      -exec     100
-  periods      -poll     1
-  periods      -timeout  4
-
-  # task is never allowed to run
-  task.exec
-    break
-  end
-end
-
-# p2done : search for images to be processed
-task	       p2done
-  command      p2search -done
-  host         local
-
-  # timeout shorter than exec so jobs do not build up
-  periods      -exec     100
-  periods      -poll     1
-  periods      -timeout  4
-
-  # task is never allowed to run
-  task.exec
-    break
-  end
-end
Index: unk/ippTools/doc/p3tools.sh
===================================================================
--- /trunk/ippTools/doc/p3tools.sh	(revision 13411)
+++ 	(revision )
@@ -1,72 +1,0 @@
-
-## PanTasks scripts for Phase 3
-
-# tasks: p3pending p3astro p3done
-#
-# queues: 
-#   p3pending: (expID) (version) (cameraID) (state)
-#
-# globals: 
-
-# p3pending : search for images to be processed
-task	       p3pending
-  command      p3search -pending
-  host         local
-
-  # timeout shorter than exec so jobs do not build up
-  periods      -exec     5
-  periods      -poll     1
-  periods      -timeout  4
-
-  # success
-  task.exit    0
-    local i Nstdout
-    # keep only new, unique entries (URL is key)
-    queuesize stdout -var Nstdout
-    for i 0 $Nstdout
-      queuepop stdout -var line
-      queuepush p3pending -uniq -key 0 "$line new"
-    end
-  end
-end
-
-# p3update : submit an exposure to be updated
-task	       p3astro
-  periods      -exec 1
-  periods      -timeout 10
-
-  task.exec
-    local expID version camera Npending
-    queuesize  p3pending -var Npending
-    if ($Npending == 0) break
-
-    queuepop p3pending -var line -key 2 new
-    if ("$line" == "NULL") break
-
-    list tmp -split $line
-    $expID  = $tmp:0
-    $version = $tmp:1
-    $camera = $tmp:2
-    queuepush p3pending "$expID $version $camera run"
-
-    host any
-    command p3astro $expID $version $camera
-  end
-
-  # success
-  task.exit    0
-    queueinit stdout
-    queuepush p3pending $taskargs:0 $taskargs:1 $taskargs:2 done
-  end
-end
-
-# p3update : search for images to be processed
-task	       p3done
-  command      p3search -done
-  host         local
-
-  # timeout shorter than exec so jobs do not build up
-  periods      -exec     30
-  periods      -poll     1
-  periods      -timeout  10
-end
Index: unk/ippTools/doc/ppImage.sh
===================================================================
--- /trunk/ippTools/doc/ppImage.sh	(revision 13411)
+++ 	(revision )
@@ -1,7 +1,0 @@
-#!/bin/csh -f
-
-sleep 3
-echo $*
-echo done
-
-exit 0
