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_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.