IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33429


Ignore:
Timestamp:
Mar 6, 2012, 1:52:55 PM (14 years ago)
Author:
mhuber
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/meh_branches/ppstack_test/ppStack/src/ppStackMatch.c

    r33415 r33429  
    66#define COVAR_FRAC 0.01                 // Truncation fraction for covariance matrix
    77
    8 //#define TESTING                         // Enable debugging output -- this needs cleaning up
    9 
    10 #ifdef TESTING
     8#define TESTING                         // Enable debugging output -- this needs cleaning up
     9//MEH - modified TESTING to be outputs only, reuse convolved now own
     10//#define TESTING_REUSE_CONV              // Enable debugging re-using convolved outputs from previous run
     11
     12#ifdef TESTING_REUSE_CONV
    1113// Read a FITS image
    1214static bool readImage(psImage **target, // Target for image
     
    153155    if (options->convolve) {
    154156        pmReadout *conv = pmReadoutAlloc(NULL); // Conv readout, for holding results temporarily
    155 #ifdef TESTING
     157#ifdef TESTING_REUSE_CONV
    156158        // This is a hack to use the temporary convolved images and kernel generated previously.
    157159        // This makes the 'matching' operation much faster, allowing debugging of the stack process easier.
     
    269271#endif
    270272
    271             //#ifdef TESTING
    272 #if 1
     273#ifdef TESTING
    273274            {
    274275                pmHDU *hdu = pmHDUFromCell(readout->parent);
     
    359360
    360361
    361             //#ifdef TESTING
    362 #if 1
     362#ifdef TESTING
    363363            {
    364364                pmHDU *hdu = pmHDUFromCell(readout->parent);
     
    400400            readout->variance = psMemIncrRefCounter(conv->variance);
    401401            readout->covariance = psImageCovarianceTruncate(conv->covariance, COVAR_FRAC);
    402 #ifdef TESTING
     402#ifdef TESTING_REUSE_CONV
    403403        }
    404404#endif
     
    540540    psFree(bg);
    541541
    542     //#ifdef TESTING
    543 #if 1
     542#ifdef TESTING
    544543    {
    545544        pmHDU *hdu = pmHDUFromCell(readout->parent);
Note: See TracChangeset for help on using the changeset viewer.