
Phase 0 pipeline tools:

p0search -ready :
  * examine the new.imfiles,new.exposures tables and select exposures ready for analysi

p0search -update :
  * select a specified image in the new.imfiles/new.exposures table
  * extract the specified header information
  * search the summit metadata db tables
  * write an entry to the raw.imfiles and raw.exposure tables
  * set the state on the new.imfiles,new.exposure tables
  * based on the camera config information;
    * add an entry to the p1.pending table (mosaic) 
    - or
    * add an entry to the p2.pending table (single)

p0search -stats :
  * select a specified image in the new.imfiles/new.exposures table
  * extract the specified header information
  * search the summit metadata db tables
  * report the image stats
  [-update without output to MDDB]

p0search -mkraw :
  * select a specified image in the new.imfiles/new.exposures table
  * extract the specified header information
  * search the summit metadata db tables
  * write an entry to the raw.imfiles and raw.exposure tables
  * set the state on the new.imfiles,new.exposure tables

p0search -cleanup:
  * remove completed entries from the new.imfiles,new.exposure tables

