IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.