IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 4, 2009, 8:17:07 PM (17 years ago)
Author:
Paul Price
Message:

Need to use warp1 as the template for zero point, since the difference image is normalised to the input.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/ipp_serial_mops.pl

    r24271 r24336  
    8080    MAX(diffWarps.diff_id) AS diff_id,
    8181    -- The following trick pulls out the appropriate values for the maximum diff_id
    82     SUBSTRING_INDEX(GROUP_CONCAT(camProcessedExp.zpt_obs ORDER BY diffWarps.diff_id), ',', 1) AS zpt_obs,
     82    SUBSTRING_INDEX(GROUP_CONCAT(camTemplate.zpt_obs ORDER BY diffWarps.diff_id), ',', 1) AS zpt_obs,
    8383    CONVERT(SUBSTRING_INDEX(GROUP_CONCAT(diffWarps.inverse ORDER BY diffWarps.diff_id), ',', 1), UNSIGNED) AS inverse
    8484FROM (
     
    8787        diffRun.diff_id,
    8888        warp1 AS warp_id,
     89        warp1 AS template_warp,
    8990        0 AS inverse
    9091    FROM diffRun
     
    99100        diffRun.diff_id,
    100101        warp2 AS warp_id,
     102        warp1 AS template_warp,
    101103        1 AS inverse
    102104    FROM diffRun
     
    111113JOIN fakeRun USING(fake_id)
    112114JOIN camRun USING(cam_id)
    113 JOIN camProcessedExp USING(cam_id)
    114115JOIN chipRun USING(chip_id)
    115116JOIN rawExp USING(exp_id)
     117JOIN warpRun AS warpTemplate ON warpTemplate.warp_id = diffWarps.template_warp
     118JOIN fakeRun AS fakeTemplate ON fakeTemplate.fake_id = warpTemplate.fake_id
     119JOIN camProcessedExp AS camTemplate ON camTemplate.cam_id = fakeTemplate.cam_id
    116120WHERE rawExp.camera = '$camera'
    117121GROUP BY exp_id;";
Note: See TracChangeset for help on using the changeset viewer.