Changeset 38709
- Timestamp:
- Sep 3, 2015, 1:22:04 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
ippScripts/scripts/diff_skycell.pl (modified) (3 diffs)
-
ppSub/src/ppSubArguments.c (modified) (1 diff)
-
ppSub/src/ppSubCamera.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/diff_skycell.pl
r38071 r38709 78 78 # XXX camera is not known here; cannot use filerules... 79 79 my $logDest = "$outroot.log"; 80 my $updateMode = 0; 80 81 if ($run_state eq 'update') { 81 82 $logDest .= '.update'; 83 $updateMode = 1; 82 84 } 83 85 $ipprc->redirect_to_logfile($logDest) or my_die( "Unable to redirect output", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR ) if $redirect; … … 322 324 } 323 325 324 # use WARPSTATS if we're updating, as we don't care about the new stuff from the STACK and DIFF STATS recipes 326 # use WARPSTATS if we're updating, as we don't care about the new stuff from the STACK and DIFF STATS recipes. 327 # The only value that we use is -quality 325 328 $recipe_ppstats = 'WARPSTATS'; 326 329 } … … 351 354 { 352 355 my $command = "$ppSub $outroot"; 356 $command .= " -updatemode" if $updateMode; 353 357 $command .= " -inimage $input"; 354 358 $command .= " -refimage $template"; -
trunk/ppSub/src/ppSubArguments.c
r31156 r38709 103 103 psMetadataAddBool(arguments, PS_LIST_TAIL, "-save-refconv", 0, "Save reference convolved images?", false); 104 104 psMetadataAddBool(arguments, PS_LIST_TAIL, "-visual", 0, "Show diagnostic plots", NULL); 105 psMetadataAddBool(arguments, PS_LIST_TAIL, "-updatemode", 0, "update mode?", false); 105 106 106 107 if (argc == 1 || !psArgumentParse(arguments, &argc, argv) || argc != 2) { -
trunk/ppSub/src/ppSubCamera.c
r38063 r38709 317 317 checkFileruleFileSave (output, config); 318 318 checkFileruleFileSave (outMask, config); 319 pmFPAfile *outVar = NULL; 319 320 if (inVar && refVar) { 320 pmFPAfile *outVar = defineOutputFile(config, output, false, "PPSUB.OUTPUT.VARIANCE",321 outVar = defineOutputFile(config, output, false, "PPSUB.OUTPUT.VARIANCE", 321 322 PM_FPA_FILE_VARIANCE); 322 323 if (!outVar) { … … 325 326 } 326 327 checkFileruleFileSave (outVar, config); 328 } 329 // If we are in update mode unconditionally save the output files 330 bool updateMode = psMetadataLookupBool(NULL, config->arguments, "-updatemode"); 331 if (updateMode) { 332 output->save = true; 333 outMask->save = true; 334 if (outVar) { 335 outVar->save = true; 336 } 327 337 } 328 338
Note:
See TracChangeset
for help on using the changeset viewer.
