IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 3, 2011, 7:28:38 PM (15 years ago)
Author:
watersc1
Message:

Hard coded cleanup commands into the script, but it works, and triggers cleanup for the things we're done with. Edit to diff_skycell.pl to create a dummy refConv file for magic to use when we haven't convolved anything.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20110406/ippTools/share/laptool_inactiveexp.sql

    r31409 r31429  
    11SELECT DISTINCT
    2     D.*,diffRun.state AS diff_state,CONVERT(sum(others.active),SIGNED) AS is_in_use FROM (
     2    D.*,diffRun.state AS diff_state,coalesce(CONVERT(sum(others.active),SIGNED),0) AS is_in_use FROM (
    33  SELECT DISTINCT
    44      W.*,IFNULL(diff1.diff_id,diff2.diff_id) AS diff_id FROM (
     
    2727    WHERE lapExp.active = FALSE
    2828    AND @WHERE@
     29    AND (warpSkyfile.quality IS NULL OR
     30         (warpSkyfile.quality != 8007      -- known cases where quality != 0, but everything's fine.
     31          AND warpSkyfile.quality != 3006  -- known cases where quality != 0, but everything's fine.
     32          ))
    2933    GROUP BY lap_id,exp_id
    3034    ) AS W
     
    3438) AS D
    3539LEFT JOIN diffRun USING(diff_id)
    36 JOIN lapExp AS others ON (D.chip_id = others.chip_id AND D.lap_id != others.lap_id)
     40LEFT JOIN lapExp AS others ON (D.chip_id = others.chip_id AND D.lap_id != others.lap_id)
    3741GROUP BY lap_id,exp_id
Note: See TracChangeset for help on using the changeset viewer.