IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9417


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

add dettool -processedimfile -included suboption

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/detrend_stack.pl

    r9412 r9417  
    6161my $files;                      # Array of files to be stacked
    6262{
    63     my $command = "$dettool -tostack -det_id $det_id -class_id $class_id"; # Command to run
     63    my $command = "$dettool -processedimfile -det_id $det_id -class_id $class_id -included"; # Command to run
    6464    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    6565        run(command => $command, verbose => 1);
    66     die "Unable to perform dettool -tostack: $error_code\n" if not $success;
     66    die "Unable to perform dettool -processedimfile: $error_code\n" if not $success;
    6767    my $metadata = $mdcParser->parse(join "", @$stdout_buf)
    6868        or die "unable to parse metadata config doc";
  • 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
  • trunk/ippTools/src/dettoolConfig.c

    r9392 r9417  
    153153    psMetadataAddBool(processedimfileArgs, PS_LIST_TAIL, "-exp",  0,
    154154        "restrict results to complete 'exposures'", false);
     155    psMetadataAddBool(processedimfileArgs, PS_LIST_TAIL, "-included",  0,
     156        "restrict results to exposures 'includeded' in the current iteration", false);
    155157    psMetadataAddBool(processedimfileArgs, PS_LIST_TAIL, "-simple",  0,
    156158        "use the simple output format", false);
Note: See TracChangeset for help on using the changeset viewer.