IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24683 for trunk/ippTools/share


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)

Location:
trunk/ippTools/share
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/share/Makefile.am

    r24512 r24683  
    159159     magicdstool_toremove.sql \
    160160     magicdstool_torestore.sql \
     161     magicdstool_torevert_raw.sql \
     162     magicdstool_torevert_chip.sql \
     163     magicdstool_torevert_warp.sql \
     164     magicdstool_torevert_diff.sql \
    161165     pstamptool_addjob_otherjob.sql \
    162166     pstamptool_addjob_stampjob.sql \
  • 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)
  • trunk/ippTools/share/magicdstool_todestreak.sql

    r24174 r24683  
    6767    AND chipProcessedImfile.fault = 0
    6868    AND chipProcessedImfile.quality = 0
     69    AND magicDSFile.component IS NULL
     70UNION
     71  -- camProcessedExp
     72SELECT DISTINCT
     73    magicDSRun.magic_ds_id,
     74    magicDSRun.magic_id,
     75    chipRun.exp_id,
     76    magicDSRun.label,
     77    camera,
     78    magicMask.uri as streaks_uri,
     79    stage,
     80    stage_id,
     81    'exposure' as component,
     82    NULL AS uri,
     83    camProcessedExp.path_base,
     84    magicRun.inverse,
     85    camProcessedExp.path_base as cam_path_base,
     86    outroot,
     87    recoveryroot,
     88    re_place,
     89    remove
     90FROM magicDSRun
     91JOIN magicMask USING (magic_id)
     92JOIN magicRun USING(magic_id)
     93JOIN camRun ON magicDSRun.stage_id = camRun.cam_id
     94JOIN camProcessedExp ON camRun.cam_id = camProcessedExp.cam_id
     95JOIN chipRun USING(chip_id)
     96JOIN rawExp ON chipRun.exp_id = rawExp.exp_id
     97LEFT JOIN magicDSFile
     98    ON magicDSRun.magic_ds_id = magicDSFile.magic_ds_id
     99WHERE
     100    magicDSRun.state = 'new'
     101    AND magicDSRun.stage = 'camera'
     102    AND camRun.state = 'full'
     103    AND chipRun.state = 'full'
     104    AND chipRun.magicked
     105    AND camProcessedExp.fault = 0
     106    AND camProcessedExp.quality = 0
    69107    AND magicDSFile.component IS NULL
    70108UNION
Note: See TracChangeset for help on using the changeset viewer.