IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17299


Ignore:
Timestamp:
Apr 2, 2008, 4:24:26 PM (18 years ago)
Author:
Paul Price
Message:

Adding additional testing output.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmStackReject.c

    r16607 r17299  
    1010
    1111#define PIXEL_LIST_BUFFER 100           // Number of pixels to add to list at a time
     12
     13//#define TESTING                         // Testing output
     14
    1215
    1316psPixels *pmStackReject(const psPixels *in, const psRegion *valid, float threshold,
     
    126129    psFree(convRO);
    127130
     131#ifdef TESTING
     132    {
     133        static int seqNum = 0;          // Sequence number
     134        psString name = NULL;           // Name of image
     135        psStringAppend(&name, "inspect_conv_%02d.fits", seqNum);
     136        seqNum++;
     137        psFits *fits = psFitsOpen(name, "w"); // FITS file pointer
     138        psFree(name);
     139        psFitsWriteImage(fits, NULL, convolved, 0, NULL);
     140        psFitsClose(fits);
     141    }
     142#endif
     143
    128144    // Threshold the convolved image
    129145    psPixels *bad = psPixelsAllocEmpty(PIXEL_LIST_BUFFER); // List of pixels that should be masked
Note: See TracChangeset for help on using the changeset viewer.