IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20976


Ignore:
Timestamp:
Dec 13, 2008, 11:48:02 AM (17 years ago)
Author:
bills
Message:

tweaks for stack vesrus stack diffs (where exp_id is NULL)

Location:
trunk/ippTools
Files:
3 edited

Legend:

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

    r20973 r20976  
    4747        warpSkyfile.uri,
    4848        warpSkyfile.path_base,
    49         0 as template,
     49        1 as template,
    5050        rawExp.camera
    5151    FROM diffRun
     
    8585        stackSumSkyfile.uri,
    8686        stackSumSkyfile.path_base,
    87         1 as template,
     87        0 as template,
    8888        rawExp.camera
    8989    FROM diffRun
     
    9292    JOIN stackSumSkyfile
    9393        ON  diffInputSkyfile.stack1 = stackSumSkyfile.stack_id
     94    JOIN stackInputSkyfile
     95        ON diffInputSkyfile.stack1 = stackInputSkyfile.stack_id
     96    JOIN warpRun
     97        ON stackInputSkyfile.warp_id = warpRun.warp_id
     98    JOIN fakeRun
     99        USING(fake_id)
     100    JOIN camRun
     101        USING(cam_id)
     102    JOIN chipRun
     103        USING(chip_id)
    94104    JOIN rawExp
    95         USING(exp_id)
     105        ON chipRun.exp_id = rawExp.exp_id
    96106    WHERE
    97107        diffRun.state = 'new'
     
    114124    JOIN stackSumSkyfile
    115125        ON  diffInputSkyfile.stack2 = stackSumSkyfile.stack_id
     126    JOIN stackInputSkyfile
     127        ON diffInputSkyfile.stack2 = stackInputSkyfile.stack_id
     128    JOIN warpRun
     129        ON stackInputSkyfile.warp_id = warpRun.warp_id
     130    JOIN fakeRun
     131        USING(fake_id)
     132    JOIN camRun
     133        USING(cam_id)
     134    JOIN chipRun
     135        USING(chip_id)
    116136    JOIN rawExp
    117         USING(exp_id)
     137        ON chipRun.exp_id = rawExp.exp_id
    118138    WHERE
    119139        diffRun.state = 'new'
  • trunk/ippTools/src/difftool.c

    r20973 r20976  
    916916                      template_warp_id ? template_warp_id : PS_MAX_S64,
    917917                      template_stack_id ? template_stack_id : PS_MAX_S64,
    918                       exp_id,
     918                      exp_id ? exp_id : PS_MAX_S64,
    919919                      config)) {
    920920        psError(PS_ERR_UNKNOWN, false, "failed to create populated diffRun");
  • trunk/ippTools/src/difftoolConfig.c

    r20973 r20976  
    138138    psMetadataAddStr(definepoprunArgs, PS_LIST_TAIL, "-reduction",  0,            "define reduction class", NULL);
    139139    psMetadataAddBool(definepoprunArgs, PS_LIST_TAIL, "-simple",  0,            "use the simple output format", false);
     140    psMetadataAddS64(definepoprunArgs, PS_LIST_TAIL, "-exp_id", 0,              "define exposure ID for template", 0);
    140141    psMetadataAddS64(definepoprunArgs, PS_LIST_TAIL, "-template_warp_id", 0,            "define warp ID for template", 0);
    141142    psMetadataAddS64(definepoprunArgs, PS_LIST_TAIL, "-template_stack_id", 0,            "define stack ID for template", 0);
Note: See TracChangeset for help on using the changeset viewer.