IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38709


Ignore:
Timestamp:
Sep 3, 2015, 1:22:04 PM (11 years ago)
Author:
bills
Message:

When performing diff updates add argument -updatemode to the ppSub command line.
When supplied, ppSub will unconditionally save the output pixels, mask, and variance images
regardless of what the file rule says.
This is necessary to update PV3 diffs which were generated without the pixels being saved
but users will want to see them.

Location:
trunk
Files:
3 edited

Legend:

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

    r38071 r38709  
    7878# XXX camera is not known here; cannot use filerules...
    7979my $logDest = "$outroot.log";
     80my $updateMode = 0;
    8081if ($run_state eq 'update') {
    8182    $logDest .= '.update';
     83    $updateMode = 1;
    8284}
    8385$ipprc->redirect_to_logfile($logDest) or my_die( "Unable to redirect output", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR ) if $redirect;
     
    322324    }
    323325
    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
    325328    $recipe_ppstats = 'WARPSTATS';
    326329}
     
    351354{
    352355    my $command = "$ppSub $outroot";
     356    $command .= " -updatemode" if $updateMode;
    353357    $command .= " -inimage $input";
    354358    $command .= " -refimage $template";
  • trunk/ppSub/src/ppSubArguments.c

    r31156 r38709  
    103103    psMetadataAddBool(arguments, PS_LIST_TAIL, "-save-refconv", 0, "Save reference convolved images?", false);
    104104    psMetadataAddBool(arguments, PS_LIST_TAIL, "-visual", 0, "Show diagnostic plots", NULL);
     105    psMetadataAddBool(arguments, PS_LIST_TAIL, "-updatemode", 0, "update mode?", false);
    105106
    106107    if (argc == 1 || !psArgumentParse(arguments, &argc, argv) || argc != 2) {
  • trunk/ppSub/src/ppSubCamera.c

    r38063 r38709  
    317317    checkFileruleFileSave (output, config);
    318318    checkFileruleFileSave (outMask, config);
     319    pmFPAfile *outVar = NULL;
    319320    if (inVar && refVar) {
    320         pmFPAfile *outVar = defineOutputFile(config, output, false, "PPSUB.OUTPUT.VARIANCE",
     321        outVar = defineOutputFile(config, output, false, "PPSUB.OUTPUT.VARIANCE",
    321322                                             PM_FPA_FILE_VARIANCE);
    322323        if (!outVar) {
     
    325326        }
    326327        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        }
    327337    }
    328338
Note: See TracChangeset for help on using the changeset viewer.