IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 9, 2006, 11:43:26 AM (20 years ago)
Author:
jhoblitt
Message:

add dettool -processedimfile -included suboption

File:
1 edited

Legend:

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

    r9413 r9417  
    14301430        " JOIN detRun"
    14311431        "   ON detRun.position = detProcessedImfile.det_id"
     1432        " JOIN detInputExp"
     1433        "   ON detRun.position = detInputExp.det_id"
     1434        "   AND detRun.iteration = detInputExp.iteration"
    14321435        " WHERE"
    14331436        "   detRun.state = 'run'"
     
    14381441        psStringAppend(&query, " AND %s", whereClause);
    14391442        psFree(whereClause);
     1443    }
     1444
     1445    {
     1446        bool status = false;
     1447        bool included = psMetadataLookupBool(&status, config->args, "-included");
     1448        if (!status) {
     1449            psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -simple");
     1450            return false;
     1451        }
     1452        // restrict search to included imfiles
     1453        if (included) {
     1454            psStringAppend(&query, " AND detInputExp.include = 1");
     1455        }
    14401456    }
    14411457
Note: See TracChangeset for help on using the changeset viewer.