IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 16, 2006, 10:37:04 PM (20 years ago)
Author:
jhoblitt
Message:

implement -toresidexp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/dettool.c

    r8406 r8407  
    27212721    psString query = psStringCopy(
    27222722        "SELECT DISTINCT"
    2723         "   detRun.position AS det_id,"
    2724         "   detRun.iteration,"
    2725         "   detRun.det_type,"
    2726         "   detInputExp.exp_id,"
    2727         "   detInputExp.include"
    2728         " FROM detRun"
    2729         " LEFT JOIN detInputExp"
    2730         "   ON detRun.position = detInputExp.det_id"
    2731         "   AND detRun.iteration = detInputExp.iteration"
    2732         " LEFT JOIN rawDetrendExp"
    2733         "   ON detInputExp.exp_id = rawDetrendExp.exp_id"
    2734         " LEFT JOIN detResidImfile"
    2735         "   ON detRun.position = detResidImfile.det_id"
    2736         "   AND detRun.iteration = detResidImfile.iteration"
    2737         "   AND detInputExp.exp_id = detResidImfile.exp_id"
    2738         " LEFT JOIN detResidExp"
    2739         "   ON detRun.position = detResidExp.det_id"
    2740         "   AND detRun.iteration = detResidExp.iteration"
    2741         "   AND detInputExp.exp_id = detResidExp.exp_id"
    2742         " GROUP BY"
    2743         "   detInputExp.exp_id"
    2744         " WHERE"
    2745         "   detResidExp.det_id IS NULL"
    2746         "   AND detResidExp.iteration IS NULL"
    2747         "   AND detResidExp.exp_id IS NULL"
    2748         " HAVING rawDetrendExp.imfiles = COUNT(detStackedImfile.class_id)"
     2723        "   det_id,"
     2724        "   iteration,"
     2725        "   det_type,"
     2726        "   exp_id,"
     2727        "   include"
     2728        " FROM"
     2729        "   (SELECT DISTINCT"
     2730        "       detRun.position AS det_id,"
     2731        "       detRun.iteration,"
     2732        "       detRun.det_type,"
     2733        "       detInputExp.exp_id,"
     2734        "       detInputExp.include,"
     2735        "       rawDetrendExp.imfiles"
     2736        "   FROM detRun"
     2737        "       LEFT JOIN detInputExp"
     2738        "       ON detRun.position = detInputExp.det_id"
     2739        "       AND detRun.iteration = detInputExp.iteration"
     2740        "   LEFT JOIN rawDetrendExp"
     2741        "       ON detInputExp.exp_id = rawDetrendExp.exp_id"
     2742        "   LEFT JOIN detResidImfile"
     2743        "       ON detRun.position = detResidImfile.det_id"
     2744        "       AND detRun.iteration = detResidImfile.iteration"
     2745        "       AND detInputExp.exp_id = detResidImfile.exp_id"
     2746        "   LEFT JOIN detResidExp"
     2747        "       ON detRun.position = detResidExp.det_id"
     2748        "       AND detRun.iteration = detResidExp.iteration"
     2749        "       AND detInputExp.exp_id = detResidExp.exp_id"
     2750        "   WHERE"
     2751        "       detResidExp.det_id IS NULL"
     2752        "       AND detResidExp.iteration IS NULL"
     2753        "       AND detResidExp.exp_id IS NULL"
     2754        "   GROUP BY"
     2755        "       detInputExp.exp_id"
     2756        "   HAVING"
     2757        "       rawDetrendExp.imfiles = COUNT(detResidImfile.class_id)"
     2758        " ) AS toresidexp"
    27492759        );
    27502760
Note: See TracChangeset for help on using the changeset viewer.