IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 27, 2009, 11:44:05 AM (17 years ago)
Author:
Paul Price
Message:

Committing work in progress. TESTING is turned on in several files --- this is not intended for regular use yet!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap/ppStack/src/ppStackCombineFinal.c

    r25924 r25950  
    99#include "ppStack.h"
    1010#include "ppStackLoop.h"
     11
     12#define TESTING                         // Enable test output
    1113
    1214bool ppStackCombineFinal(pmReadout *target, ppStackThreadData *stack, psArray *covariances,
     
    8486
    8587#ifdef TESTING
    86     pmStackVisualPlotTestImage(target->image, "combined_initial.fits");
    87     ppStackWriteImage("combined_final.fits", NULL, target->image, config);
     88    static int pass = 0;                // Pass through
     89    psString name = NULL;               // Name of file
     90    psStringAppend(&name, "combined_image_final_%d.fits", pass);
     91    pass++;
     92    ppStackWriteImage(name, NULL, target->image, config);
     93    psStringSubstitute(&name, "mask", "image");
     94    ppStackWriteImage(name, NULL, target->mask, config);
     95    psStringSubstitute(&name, "variance", "mask");
     96    ppStackWriteImage(name, NULL, target->variance, config);
     97    psFree(name);
     98
     99    pmStackVisualPlotTestImage(target->image, "combined_image_final.fits");
    88100#endif
    89101
Note: See TracChangeset for help on using the changeset viewer.