IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27723 for trunk/ippTools/share


Ignore:
Timestamp:
Apr 21, 2010, 3:47:06 PM (16 years ago)
Author:
watersc1
Message:

Have difference images inherit the data_group of the warp that went into them.

Location:
trunk/ippTools/share
Files:
2 edited

Legend:

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

    r26144 r27723  
    55    warpRun.label,
    66    warpRun.tess_id,
     7    warpRun.data_group,
    78    COUNT(skycell_id) as skycell_count
    89FROM warpRun
  • trunk/ippTools/share/difftool_definewarpwarp_select.sql

    r27576 r27723  
    33    inputWarpRun.tess_id AS tess_id,
    44    inputRawExp.exp_id AS input_exp_id,
     5    inputWarpRun.data_group AS input_data_group,
    56    -- The following trick pulls out the warp_id that has the smallest distance
    67    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.