IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28733 for trunk/ippTools/share


Ignore:
Timestamp:
Jul 28, 2010, 1:16:42 PM (16 years ago)
Author:
bills
Message:

support stage chip_bg and warp_bg in disttool -toadvance

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/share/disttool_toadvance.sql

    r27012 r28733  
    7474    HAVING
    7575        COUNT(chipProcessedImfile.class_id) = COUNT(distComponent.component)
     76        AND SUM(distComponent.fault) = 0
     77UNION
     78-- chip_bg stage
     79SELECT
     80    distRun.dist_id,
     81    stage,
     82    stage_id,
     83    outroot,
     84    label,
     85    clean
     86    FROM distRun
     87    JOIN chipBackgroundImfile ON stage_id = chipBackgroundImfile.chip_bg_id
     88    LEFT JOIN distComponent
     89        ON distComponent.dist_id = distRun.dist_id
     90        AND distComponent.component = chipBackgroundImfile.class_id
     91    WHERE
     92        distRun.state = 'new'
     93        AND distRun.fault = 0
     94        AND distRun.stage = 'chip_bg'
     95    GROUP BY
     96        dist_id,
     97        chipBackgroundImfile.chip_bg_id
     98    HAVING
     99        COUNT(chipBackgroundImfile.class_id) = COUNT(distComponent.component)
    76100        AND SUM(distComponent.fault) = 0
    77101UNION
     
    145169        AND SUM(distComponent.fault) = 0
    146170UNION
     171-- warp_bg stage
     172SELECT
     173    distRun.dist_id,
     174    stage,
     175    stage_id,
     176    outroot,
     177    label,
     178    clean
     179    FROM distRun
     180    JOIN warpBackgroundSkyfile on stage_id = warp_bg_id
     181    LEFT JOIN distComponent
     182        ON distRun.dist_id = distComponent.dist_id
     183        AND distComponent.component = warpBackgroundSkyfile.skycell_id
     184    WHERE
     185        distRun.state = 'new'
     186        AND distRun.fault = 0
     187        AND distRun.stage = 'warp_bg'
     188--        AND warpSkyfile.fault = 0
     189--        AND warpSkyfile.quality = 0
     190    GROUP BY
     191        distRun.dist_id,
     192        warp_bg_id
     193    HAVING
     194        COUNT(warpBackgroundSkyfile.skycell_id) = COUNT(distComponent.component)
     195        AND SUM(distComponent.fault) = 0
     196UNION
    147197-- diff stage
    148198SELECT
Note: See TracChangeset for help on using the changeset viewer.