IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 12, 2008, 12:27:17 PM (18 years ago)
Author:
bills
Message:

the minuend image (template = 0) is not necessarily a warp so we can't
get the warp_id or camera information in this query.
Instead list the warp and stack ids for template = 0 and template = 1
using sub-queries. The postage stamp request parser will need to determine
the warp and exposure information using warptool when it is appropriate.

File:
1 edited

Legend:

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

    r20024 r20071  
    44    diffRun.state,
    55    diffSkyfile.*,
    6     rawExp.exp_id,
    7     rawExp.camera,
    8     warpRun.warp_id
     6    (SELECT warp_id FROM diffInputSkyfile WHERE diffInputSkyfile.diff_id = diffRun.diff_id
     7        AND diffInputSkyfile.template = 0 ) AS warp_id_temp_0,
     8    (SELECT stack_id FROM diffInputSkyfile WHERE diffInputSkyfile.diff_id = diffRun.diff_id
     9        AND diffInputSkyfile.template = 0 ) AS stack_id_temp_0,
     10    (SELECT warp_id FROM diffInputSkyfile WHERE diffInputSkyfile.diff_id = diffRun.diff_id
     11        AND diffInputSkyfile.template = 1 ) AS warp_id_temp_1,
     12    (SELECT stack_id FROM diffInputSkyfile WHERE diffInputSkyfile.diff_id = diffRun.diff_id
     13        AND diffInputSkyfile.template = 1 ) AS stack_id_temp_1
    914FROM diffRun
    1015JOIN diffSkyfile
    1116    USING(diff_id)
    12 -- WS: my new stuff begins here
    1317JOIN diffInputSkyfile
    1418    ON diffInputSkyfile.diff_id = diffRun.diff_id
    1519    AND diffInputSkyfile.template = 0
    16 JOIN warpRun
    17     ON diffInputSkyfile.warp_id = warpRun.warp_id
    18 JOIN fakeRun
    19     ON warpRun.fake_id = fakeRun.fake_id
    20 JOIN camRun
    21     ON camRun.cam_id = fakeRun.cam_id
    22 JOIN chipRun
    23     ON camRun.chip_id = chipRun.chip_id
    24 JOIN rawExp
    25     ON chipRun.exp_id = rawExp.exp_id
Note: See TracChangeset for help on using the changeset viewer.