IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 28, 2006, 11:02:41 AM (20 years ago)
Author:
jhoblitt
Message:

fix -residdetrun to work with verify mode

File:
1 edited

Legend:

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

    r10220 r10221  
    42824282
    42834283    psString query = psStringCopy(
    4284         "SELECT DISTINCT"
    4285         "   det_id,"
    4286         "   iteration,"
    4287         "   det_type,"
    4288         "   camera"
    4289         " FROM"
    4290         "   (SELECT DISTINCT"
    4291         "       detRun.det_id AS det_id,"
    4292         "       detRun.iteration,"
    4293         "       detRun.det_type,"
    4294         "       detInputExp.exp_tag,"
    4295         "       rawDetrendExp.camera"
    4296         "   FROM detRun"
    4297         "       LEFT JOIN detInputExp"
    4298         "       ON detRun.det_id = detInputExp.det_id"
    4299         "       AND detRun.iteration = detInputExp.iteration"
    4300         "   LEFT JOIN rawDetrendExp"
    4301         "       ON detInputExp.exp_tag = rawDetrendExp.exp_tag"
    4302         "   LEFT JOIN detResidExp"
    4303         "       ON detRun.det_id = detResidExp.det_id"
    4304         "       AND detRun.iteration = detResidExp.iteration"
    4305         "       AND detInputExp.exp_tag = detResidExp.exp_tag"
    4306         "   WHERE"
    4307         "       detRun.state = 'run'"
    4308         "   AND detRun.mode = 'master'"
    4309         "   GROUP BY"
    4310         "       detRun.det_id,"
    4311         "       detRun.iteration"
    4312         "   HAVING"
    4313         "       COUNT(detResidExp.exp_tag) = COUNT(detInputExp.exp_tag)"
    4314         " ) AS residdetrun"
     4284        "SELECT DISTINCT\n"
     4285        "   det_id,\n"
     4286        "   iteration,\n"
     4287        "   det_type,\n"
     4288        "   mode,\n"
     4289        "   camera\n"
     4290        " FROM\n"
     4291        "   (SELECT DISTINCT\n"
     4292        "       detRun.det_id,\n"
     4293        "       detRun.iteration,\n"
     4294        "       detRun.det_type,\n"
     4295        "       detRun.mode,\n"
     4296        "       detInputExp.exp_tag,\n"
     4297        "       rawDetrendExp.camera\n"
     4298        "   FROM detRun\n"
     4299        "   JOIN detInputExp\n"
     4300        "       USING(det_id, iteration)\n"
     4301        "   JOIN rawDetrendExp\n"
     4302        "       ON detInputExp.exp_tag = rawDetrendExp.exp_tag\n"
     4303        "   LEFT JOIN detResidExp\n"
     4304        "       ON detRun.det_id = detResidExp.det_id\n"
     4305        "       AND detRun.iteration = detResidExp.iteration\n"
     4306        "       AND detInputExp.exp_tag = detResidExp.exp_tag\n"
     4307        "   WHERE\n"
     4308        "       detRun.state = 'run'\n"
     4309        "   GROUP BY\n"
     4310        "       detRun.det_id,\n"
     4311        "       detRun.iteration\n"
     4312        "   HAVING\n"
     4313        "       COUNT(detResidExp.exp_tag) = COUNT(detInputExp.exp_tag)\n"
     4314        " ) AS residdetrun\n"
    43154315        );
    43164316
Note: See TracChangeset for help on using the changeset viewer.