IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 28, 2009, 1:36:37 PM (18 years ago)
Author:
beaumont
Message:

Added QA plots to ppSub. Migrated psastro QA plots to psModules/extras.

Location:
branches/cnb_branch_20090113/ppSub/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/cnb_branch_20090113/ppSub/src/ppSub.c

    r21120 r21208  
    6363    psTimerStop();
    6464
     65    pmSubtractionVisualClose(); //close plot windows, if -visual is set
    6566    psFree(config);
    6667    pmModelClassCleanup();
  • branches/cnb_branch_20090113/ppSub/src/ppSubArguments.c

    r20568 r21208  
    244244    psMetadataAddS32(arguments, PS_LIST_TAIL, "-bin2", 0, "Binning factor for second level", 0);
    245245    psMetadataAddStr(arguments, PS_LIST_TAIL, "-dumpconfig", 0, "file to dump configuration to", NULL);
     246    psMetadataAddBool(arguments, PS_LIST_TAIL, "-visual", 0, "Show diagnostic plots", NULL);
    246247
    247248    if (argc == 1 || !psArgumentParse(arguments, &argc, argv) || argc != 4) {
     
    357358    }
    358359
     360    if (psMetadataLookupBool(NULL, arguments, "-visual")) {
     361        pmSubtractionSetVisual(true);
     362    }
     363
    359364    // Translate the kernel type
    360365    psString type = psMetadataLookupStr(NULL, arguments, "-type"); // Name of kernel type
  • branches/cnb_branch_20090113/ppSub/src/ppSubReadout.c

    r21120 r21208  
    451451    outRO->mask = (psImage*)psBinaryOp(outRO->mask, inConv->mask, "|", refConv->mask);
    452452
     453    outRO->data_exists = outCell->data_exists = outCell->parent->data_exists = true;
     454
     455    // examine the subtraction
     456    pmSubtractionVisualShowSubtraction(minuend->image,
     457                                       subtrahend->image,
     458                                       outRO->image);
     459
    453460    psFree(inConv);
    454461    psFree(refConv);
    455 
    456     outRO->data_exists = outCell->data_exists = outCell->parent->data_exists = true;
    457462
    458463    // Copy astrometry over
Note: See TracChangeset for help on using the changeset viewer.