Changeset 27723 for trunk/ippTools/share
- Timestamp:
- Apr 21, 2010, 3:47:06 PM (16 years ago)
- Location:
- trunk/ippTools/share
- Files:
-
- 2 edited
-
difftool_definewarpstack_part1.sql (modified) (1 diff)
-
difftool_definewarpwarp_select.sql (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/share/difftool_definewarpstack_part1.sql
r26144 r27723 5 5 warpRun.label, 6 6 warpRun.tess_id, 7 warpRun.data_group, 7 8 COUNT(skycell_id) as skycell_count 8 9 FROM warpRun -
trunk/ippTools/share/difftool_definewarpwarp_select.sql
r27576 r27723 3 3 inputWarpRun.tess_id AS tess_id, 4 4 inputRawExp.exp_id AS input_exp_id, 5 inputWarpRun.data_group AS input_data_group, 5 6 -- The following trick pulls out the warp_id that has the smallest distance 6 7 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
Note:
See TracChangeset
for help on using the changeset viewer.
