IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15483


Ignore:
Timestamp:
Nov 6, 2007, 2:49:58 PM (19 years ago)
Author:
jhoblitt
Message:

final tweaks

File:
1 edited

Legend:

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

    r15478 r15483  
     1-- find warp_id that have had all of their skycell's differenced but have not
     2-- yet been magic'd
    13SELECT DISTINCT
    2     warpSkyCellMap.*,
    3     diffInputSkyfile.*
     4    warpRun.warp_id
    45FROM warpRun
    5 -- find all of the skycells that came out of a single exposures
     6-- find all of the skycells that came out of a single exposure
    67JOIN warpSkyCellMap
    78    USING(warp_id)
     
    2425    AND (diffRun.state = 'stop' || diffRun.state IS NULL)
    2526    AND (warpSkyfile.fault = 0 || warpSkyfile.fault IS NULL)
    26     AND (diffInputSkyfile.template = 0 || diffInputSkyfile.template IS NULL)
     27    AND (diffInputSkyfile.template = 1 || diffInputSkyfile.template IS NULL)
    2728    AND (diffInputSkyfile.kind = 'warped' || diffInputSkyfile.kind IS NULL)
    2829    AND (diffSkyfile.fault = 0 || diffSkyfile.fault IS NULL)
    2930    AND magicInputSkyfile.diff_id IS NULL
    3031GROUP BY
    31     warpRun.warp_id
     32    warpRun.warp_id, warpSkyCellMap.skycell_id, diffInputSkyfile.skycell_id
    3233HAVING COUNT(warpSkyCellMap.skycell_id) = COUNT(diffInputSkyfile.skycell_id)
Note: See TracChangeset for help on using the changeset viewer.