IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.