IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 6, 2009, 12:52:22 PM (17 years ago)
Author:
bills
Message:

Add hooks for carefully reverting faulted destreaked files. Support "destreak" operation at
camera stage. (For censoring detections)

File:
1 edited

Legend:

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

    r24421 r24683  
    1616    GROUP BY
    1717        magicDSRun.magic_ds_id,
    18         rawImfile.exp_id
     18        stage_id
    1919    HAVING
    2020        COUNT(rawImfile.class_id) = COUNT(magicDSFile.component)
     
    3535    GROUP BY
    3636        magic_ds_id,
    37         chip_id
     37        stage_id
    3838    HAVING
    3939        COUNT(chipProcessedImfile.class_id) = COUNT(magicDSFile.component)
    4040        AND SUM(magicDSFile.fault) = 0
     41UNION
     42-- camera stage
     43SELECT
     44    magicDSRun.magic_ds_id
     45    FROM magicDSRun
     46    JOIN camProcessedExp ON stage_id = camProcessedExp.cam_id
     47    LEFT JOIN magicDSFile
     48        ON magicDSFile.magic_ds_id = magicDSRun.magic_ds_id
     49        AND magicDSFile.component IS NOT NULL
     50    WHERE
     51        magicDSRun.state = 'new'
     52        AND magicDSRun.stage = 'camera'
     53        AND camProcessedExp.quality = 0
     54        AND magicDSFile.fault = 0
     55    GROUP BY
     56        magic_ds_id,
     57        stage_id
    4158UNION
    4259-- warp stage
     
    5572    GROUP BY
    5673        magicDSRun.magic_ds_id,
    57         warp_id
     74        stage_id
    5875    HAVING
    5976        COUNT(warpSkyfile.skycell_id) = COUNT(magicDSFile.component)
Note: See TracChangeset for help on using the changeset viewer.