Changeset 9417
- Timestamp:
- Oct 9, 2006, 11:43:26 AM (20 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
ippScripts/scripts/detrend_stack.pl (modified) (1 diff)
-
ippTools/src/dettool.c (modified) (2 diffs)
-
ippTools/src/dettoolConfig.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_stack.pl
r9412 r9417 61 61 my $files; # Array of files to be stacked 62 62 { 63 my $command = "$dettool - tostack -det_id $det_id -class_id $class_id"; # Command to run63 my $command = "$dettool -processedimfile -det_id $det_id -class_id $class_id -included"; # Command to run 64 64 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 65 65 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; 67 67 my $metadata = $mdcParser->parse(join "", @$stdout_buf) 68 68 or die "unable to parse metadata config doc"; -
trunk/ippTools/src/dettool.c
r9413 r9417 1430 1430 " JOIN detRun" 1431 1431 " ON detRun.position = detProcessedImfile.det_id" 1432 " JOIN detInputExp" 1433 " ON detRun.position = detInputExp.det_id" 1434 " AND detRun.iteration = detInputExp.iteration" 1432 1435 " WHERE" 1433 1436 " detRun.state = 'run'" … … 1438 1441 psStringAppend(&query, " AND %s", whereClause); 1439 1442 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 } 1440 1456 } 1441 1457 -
trunk/ippTools/src/dettoolConfig.c
r9392 r9417 153 153 psMetadataAddBool(processedimfileArgs, PS_LIST_TAIL, "-exp", 0, 154 154 "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); 155 157 psMetadataAddBool(processedimfileArgs, PS_LIST_TAIL, "-simple", 0, 156 158 "use the simple output format", false);
Note:
See TracChangeset
for help on using the changeset viewer.
