IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25950


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!

Location:
branches/pap/ppStack/src
Files:
5 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
  • branches/pap/ppStack/src/ppStackCombineInitial.c

    r23767 r25950  
    99#include "ppStack.h"
    1010#include "ppStackLoop.h"
     11
     12#define TESTING                         // Enable test output
    1113
    1214bool ppStackCombineInitial(ppStackThreadData *stack, ppStackOptions *options, pmConfig *config)
     
    8385
    8486#ifdef TESTING
    85     ppStackWriteImage("combined_initial.fits", NULL, outRO->image, config);
    86     pmStackVisualPlotTestImage(outRO->image, "combined_initial.fits");
     87    ppStackWriteImage("combined_image_initial.fits", NULL, options->outRO->image, config);
     88    ppStackWriteImage("combined_mask_initial.fits", NULL, options->outRO->mask, config);
     89    ppStackWriteImage("combined_variance_initial.fits", NULL, options->outRO->variance, config);
     90
     91    pmStackVisualPlotTestImage(options->outRO->image, "combined_image_initial.fits");
    8792#endif
    88 
    89     psFree(options->matchChi2); options->matchChi2 = NULL;
    90 
    9193
    9294    if (options->stats) {
  • branches/pap/ppStack/src/ppStackLoop.c

    r25924 r25950  
    9898    psTrace("ppStack", 2, "Final stack of convolved images....\n");
    9999    if (!ppStackCombineFinal(options->outRO, stack, options->convCovars, options, config,
    100                              false, false, false)) {
     100                             true, false, false)) {
    101101        psError(PS_ERR_UNKNOWN, false, "Unable to perform final combination.");
    102102        psFree(stack);
  • branches/pap/ppStack/src/ppStackMatch.c

    r25467 r25950  
    1818#define COVAR_FRAC 0.01                 // Truncation fraction for covariance matrix
    1919
    20 //#define TESTING                         // Enable debugging output
     20#define TESTING                         // Enable debugging output
    2121
    2222#ifdef TESTING
     
    257257            psFitsClose(fits);
    258258
    259             if (!readImage(&readout->image, options->imageNames->data[index], config) ||
    260                 !readImage(&readout->mask, options->maskNames->data[index], config) ||
    261                 !readImage(&readout->variance, options->varianceNames->data[index], config)) {
     259            if (!readImage(&readout->image, options->convImages->data[index], config) ||
     260                !readImage(&readout->mask, options->convMasks->data[index], config) ||
     261                !readImage(&readout->variance, options->convVariances->data[index], config)) {
    262262                psError(PS_ERR_IO, false, "Unable to read previously produced image.");
    263263                return false;
  • branches/pap/ppStack/src/ppStackReject.c

    r25466 r25950  
    1010#include "ppStackLoop.h"
    1111
    12 //#define TESTING
     12#define TESTING
    1313
    1414bool ppStackReject(ppStackOptions *options, pmConfig *config)
Note: See TracChangeset for help on using the changeset viewer.