IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35154 for trunk/ippTools/share


Ignore:
Timestamp:
Feb 12, 2013, 4:24:02 PM (13 years ago)
Author:
bills
Message:

Further changes to background spur in the pipeline.

  1. Add chipBackgroundRun.cam_id
  2. Use camera stage mask instead of chip stage mask
  3. Drop warpBackgroundRun.alt_cam_label use chipBackgroundRun.cam_id to find the astrometry
  4. Fix broken processing of chipBackground stats output
Location:
trunk/ippTools/share
Files:
6 edited

Legend:

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

    r28486 r35154  
    11SELECT
    2     chipProcessedImfile.*
     2    chipProcessedImfile.*,
     3    camProcessedExp.path_base AS cam_path_base
    34FROM chipBackgroundRun
    45JOIN chipRun USING(chip_id)
    56JOIN chipProcessedImfile USING(chip_id)
     7LEFT JOIN camProcessedExp ON chipBackgroundRun.cam_id = camProcessedExp.cam_id
    68WHERE chipRun.state = 'full'
    79    AND chipProcessedImfile.fault = 0
  • trunk/ippTools/share/bgtool_definechip.sql

    r35119 r35154  
    11SELECT
    2     chipRun.*
     2    chipRun.*,
     3    camRun.cam_id,
     4    chip_bg_id,
     5    CURRENT_TIMESTAMP AS registered
    36FROM chipRun
    47JOIN rawExp USING(exp_id)
    5 LEFT JOIN chipBackgroundRun USING(chip_id)
    6 WHERE chipRun.state = 'full'
     8JOIN chipRun as altChipRun USING(exp_id)
     9JOIN camRun ON altChipRun.chip_id = camRun.chip_id
     10JOIN camProcessedExp USING(cam_id)
     11LEFT JOIN chipBackgroundRun ON chipBackgroundRun.chip_id = chipRun.chip_id -- labelHook %s
     12WHERE chipRun.state = 'full' AND camRun.state ='full' AND camProcessedExp.quality = 0
  • trunk/ippTools/share/bgtool_definewarp.sql

    r28551 r35154  
    11SELECT
    2     warpRun.*,
    3     chipBackgroundRun.chip_bg_id
     2    warpRun.warp_id,
     3    chipBackgroundRun.*
     4    -- the following items are selected for aid in debugging
     5    ,
     6    warpsChipRun.chip_id as warpschip_id,
     7    chipRun.chip_id AS thischip_id,
     8    warpBackgroundRun.warp_bg_id
    49FROM warpRun
    510JOIN fakeRun USING(fake_id)
    611JOIN camRun USING(cam_id)
    7 JOIN chipRun USING(chip_id)
    8 JOIN chipBackgroundRun USING(chip_id)
     12JOIN chipRun as warpsChipRun ON camRun.chip_id = warpsChipRun.chip_id
    913JOIN rawExp USING(exp_id)
    10 LEFT JOIN warpBackgroundRun USING(chip_bg_id)
     14JOIN chipRun USING(exp_id)
     15JOIN chipBackgroundRun ON chipRun.chip_id = chipBackgroundRun.chip_id
     16    AND (chipBackgroundRun.cam_id = camRun.cam_id OR chipBackgroundRun.cam_id = 0)
     17LEFT JOIN warpBackgroundRun ON chipBackgroundRun.chip_bg_id = warpBackgroundRun.warp_bg_id -- label hook %s
    1118WHERE chipBackgroundRun.state = 'full'
    12     AND warpRun.state IN ('full', 'cleaned', 'goto_cleaned') -- only need it to have been completed
     19    AND warpRun.state IN ('full', 'cleaned', 'goto_cleaned') -- need warp to have completed so warpSkyCellMap is populated
  • trunk/ippTools/share/bgtool_tochip.sql

    r28486 r35154  
    1616    AND (Label.active OR Label.active IS NULL)
    1717-- WHERE hook %s
    18 ORDER BY priority DESC, chip_bg_id
     18ORDER BY priority DESC, chip_bg_id, class_id
  • trunk/ippTools/share/bgtool_warp.sql

    r35134 r35154  
    44    warpBackgroundRun.workdir,
    55    warpBackgroundRun.label,
    6     warpBackgroundRun.alt_cam_label,
    76    rawExp.exp_id,
    87    rawExp.exp_name,
  • trunk/ippTools/share/bgtool_warpinputs.sql

    r28747 r35154  
    1111JOIN chipBackgroundImfile USING(chip_bg_id, class_id)
    1212JOIN fakeRun USING(fake_id)
    13 JOIN camProcessedExp USING(cam_id)
     13JOIN camProcessedExp ON camProcessedExp.cam_id = fakeRun.cam_id
    1414WHERE warpRun.state IN ('full', 'cleaned', 'goto_cleaned') -- only need it to have been completed
    1515    AND warpSkyfile.fault = 0
Note: See TracChangeset for help on using the changeset viewer.