IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 13, 2009, 12:37:33 PM (17 years ago)
Author:
Paul Price
Message:

Merging branches/pap_magic@24173 into trunk. One conflict in dbconfig/changes.txt resolved easily.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/ippTools/share/difftool_definewarpwarp_select.sql

    r23503 r24174  
    11SELECT
    22    inputWarpRun.warp_id AS input_warp_id,
     3    inputWarpRun.tess_id AS tess_id,
    34    inputRawExp.exp_id AS input_exp_id,
    4     inputWarpRun.tess_id AS tess_id,
     5    -- The following trick pulls out the warp_id that has the smallest distance
    56    SUBSTRING_INDEX(GROUP_CONCAT(templateWarpRun.warp_id ORDER BY ABS(ASIN(SQRT(POW(SIN(0.5*(inputRawExp.decl - templateRawExp.decl)),2) + COS(inputRawExp.decl) * COS(templateRawExp.decl) * POW(SIN(0.5*(inputRawExp.ra - templateRawExp.ra)),2))))), ',', 1) AS template_warp_id
    67FROM warpRun AS inputWarpRun
     
    910JOIN chipRun AS inputChipRun USING(chip_id)
    1011JOIN rawExp AS inputRawExp USING(exp_id)
    11 -- To find exposures that haven't been diffed:%s LEFT JOIN diffRun ON diffRun.exp_id = inputRawExp.exp_id
     12-- To find exposures that haven't been diffed, insert newline here:%s LEFT JOIN diffs USING(exp_id)
    1213JOIN warpRun AS templateWarpRun
    1314    ON templateWarpRun.warp_id != inputWarpRun.warp_id -- Don't use self as template!
Note: See TracChangeset for help on using the changeset viewer.