IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 20, 2009, 12:42:13 PM (17 years ago)
Author:
watersc1
Message:

More merging

Location:
branches/czw_branch/cleanup
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/cleanup

  • branches/czw_branch/cleanup/ippTools/share/difftool_skyfile.sql

    r24512 r25158  
    66    diffRun.workdir,
    77    diffRun.bothways,
    8     camProcessedExp.zpt_obs,
    9     camProcessedExp.zpt_stdev,
    10     camProcessedExp.zpt_lq,
    11     camProcessedExp.zpt_uq,
    12     rawExp.exp_time,
    13     rawExp.camera,
    148    warp1,
    159    stack1,
    1610    warp2,
    17     stack2
     11    stack2,
     12    -- The following are only valid for warps
     13    -- XXX This needs to be more clever to handle diffs between stacks
     14    camProcessedInput.zpt_obs,
     15    camProcessedInput.zpt_stdev,
     16    camProcessedInput.zpt_lq,
     17    camProcessedInput.zpt_uq,
     18    rawInput.exp_time,
     19    rawInput.camera,
     20    rawInput.exp_name AS exp_name_1,
     21    rawTemplate.exp_name AS exp_name_2,
     22    rawInput.exp_id AS exp_id_1,
     23    rawTemplate.exp_id AS exp_id_2
    1824FROM diffRun
    1925JOIN diffSkyfile USING(diff_id)
    2026JOIN diffInputSkyfile USING(diff_id, skycell_id)
    21 JOIN warpRun
    22 -- NOTE: joining input only!
    23 -- This is so that we can get the correct zero point
    24 -- XXX This needs to be more clever to handle diffs between stacks
    25     ON warpRun.warp_id = diffInputSkyfile.warp1
    26 JOIN fakeRun USING(fake_id)
    27 JOIN camRun USING(cam_id)
    28 JOIN camProcessedExp USING(cam_id)
    29 JOIN chipRun USING(chip_id)
    30 JOIN rawExp USING(exp_id)
     27LEFT JOIN warpRun AS warpInput
     28    ON warpInput.warp_id = diffInputSkyfile.warp1
     29LEFT JOIN fakeRun AS fakeInput
     30    ON fakeInput.fake_id = warpInput.fake_id
     31LEFT JOIN camRun AS camInput
     32    ON camInput.cam_id = fakeInput.cam_id
     33LEFT JOIN camProcessedExp AS camProcessedInput
     34    ON camProcessedInput.cam_id = camInput.cam_id
     35LEFT JOIN chipRun AS chipInput
     36    ON chipInput.chip_id = camInput.chip_id
     37LEFT JOIN rawExp AS rawInput
     38    ON rawInput.exp_id = chipInput.exp_id
     39LEFT JOIN warpRun AS warpTemplate
     40    ON warpTemplate.warp_id = diffInputSkyfile.warp2
     41LEFT JOIN fakeRun AS fakeTemplate
     42    ON fakeTemplate.fake_id = warpTemplate.fake_id
     43LEFT JOIN camRun AS camTemplate
     44    ON camTemplate.cam_id = fakeTemplate.cam_id
     45LEFT JOIN chipRun AS chipTemplate
     46    ON chipTemplate.chip_id = camTemplate.chip_id
     47LEFT JOIN rawExp AS rawTemplate
     48    ON rawTemplate.exp_id = chipTemplate.exp_id
Note: See TracChangeset for help on using the changeset viewer.