Changeset 24174 for trunk/ippTools/share/difftool_definewarpwarp_select.sql
- Timestamp:
- May 13, 2009, 12:37:33 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippTools/share/difftool_definewarpwarp_select.sql (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/pap_magic (added) merged: 24120,24132-24136,24145,24147-24154,24156-24164,24168-24173
- Property svn:mergeinfo changed
-
trunk/ippTools/share/difftool_definewarpwarp_select.sql
r23503 r24174 1 1 SELECT 2 2 inputWarpRun.warp_id AS input_warp_id, 3 inputWarpRun.tess_id AS tess_id, 3 4 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 5 6 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 6 7 FROM warpRun AS inputWarpRun … … 9 10 JOIN chipRun AS inputChipRun USING(chip_id) 10 11 JOIN 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_id12 -- To find exposures that haven't been diffed, insert newline here:%s LEFT JOIN diffs USING(exp_id) 12 13 JOIN warpRun AS templateWarpRun 13 14 ON templateWarpRun.warp_id != inputWarpRun.warp_id -- Don't use self as template!
Note:
See TracChangeset
for help on using the changeset viewer.
