IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 28, 2007, 12:01:22 PM (19 years ago)
Author:
jhoblitt
Message:

refactor chiptool & db to preserve metadata history

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/backtrack/ippTools/share/chiptool_pendingimfile.sql

    r12259 r13990  
    11SELECT
    2     chipPendingExp.*,
     2    chipRun.*,
     3    chipPendingImfile.exp_tag,
    34    chipPendingImfile.class_id,
    4     chipPendingImfile.uri,
     5    rawImfile.uri,
    56    rawExp.exp_id,
    67    rawExp.camera,
    78    rawExp.telescope,
    89    rawExp.filelevel
    9 FROM chipPendingImfile
    10 JOIN chipPendingExp
     10FROM chipRun
     11JOIN chipPendingImfile
    1112    USING(chip_id)
     13LEFT JOIN chipProcessedImfile
     14    ON chipPendingImfile.chip_id = chipProcessedImfile.chip_id
     15    AND chipPendingImfile.exp_tag = chipProcessedImfile.exp_tag
     16    AND chipPendingImfile.class_id = chipProcessedImfile.class_id
     17JOIN rawImfile
     18    ON chipPendingImfile.exp_tag = rawImfile.exp_tag
     19    AND chipPendingImfile.class_id = rawImfile.class_id
    1220JOIN rawExp
    13     ON chipPendingExp.exp_tag = rawExp.exp_tag
     21    ON rawImfile.exp_tag = rawExp.exp_tag
    1422LEFT JOIN chipMask
    15     ON chipPendingExp.label = chipMask.label
     23    ON chipRun.label = chipMask.label
    1624WHERE
    17     chipMask.label IS NULL
     25    chipRun.state = 'run'
     26    AND chipProcessedImfile.chip_id IS NULL
     27    AND chipProcessedImfile.exp_tag IS NULL
     28    AND chipProcessedImfile.class_id IS NULL
     29    AND chipMask.label IS NULL
Note: See TracChangeset for help on using the changeset viewer.