IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 14, 2009, 10:23:24 AM (17 years ago)
Author:
Paul Price
Message:

Altering SQL to get exp_id for warp1 and warp2.

File:
1 edited

Legend:

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

    r24512 r25071  
    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_id AS exp1,
     21    rawTemplate.exp_id AS exp2
    1822FROM diffRun
    1923JOIN diffSkyfile USING(diff_id)
    2024JOIN 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)
     25LEFT JOIN warpRun AS warpInput
     26    ON warpInput.warp_id = diffInputSkyfile.warp1
     27LEFT JOIN fakeRun AS fakeInput
     28    ON fakeInput.fake_id = warpInput.fake_id
     29LEFT JOIN camRun AS camInput
     30    ON camInput.cam_id = fakeInput.cam_id
     31LEFT JOIN camProcessedExp AS camProcessedInput
     32    ON camProcessedInput.cam_id = camInput.cam_id
     33LEFT JOIN chipRun AS chipInput
     34    ON chipInput.chip_id = camInput.chip_id
     35LEFT JOIN rawExp AS rawInput
     36    ON rawInput.exp_id = chipInput.exp_id
     37LEFT JOIN warpRun AS warpTemplate
     38    ON warpTemplate.warp_id = diffInputSkyfile.warp2
     39LEFT JOIN fakeRun AS fakeTemplate
     40    ON fakeTemplate.fake_id = warpTemplate.fake_id
     41LEFT JOIN camRun AS camTemplate
     42    ON camTemplate.cam_id = fakeTemplate.cam_id
     43LEFT JOIN chipRun AS chipTemplate
     44    ON chipTemplate.chip_id = camTemplate.chip_id
     45LEFT JOIN rawExp AS rawTemplate
     46    ON rawTemplate.exp_id = chipTemplate.exp_id
Note: See TracChangeset for help on using the changeset viewer.