IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24229


Ignore:
Timestamp:
May 20, 2009, 12:43:49 PM (17 years ago)
Author:
eugene
Message:

add function to flip cells before flattening

Location:
trunk/ppImage/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/Makefile.am

    r23845 r24229  
    5454        ppImageDefineFile.c \
    5555        ppImageSetMaskBits.c \
     56        ppImageParityFlip.c \
    5657        ppImageCheckCTE.c \
    5758        ppImageFileCheck.c \
  • trunk/ppImage/src/ppImage.h

    r24079 r24229  
    4343    bool doStats;                       // call ppStats on the image
    4444    bool checkCTE;                      // measure pixel-based variance
     45    bool applyParity;                   // Apply Cell parities
    4546
    4647    bool doCrosstalkMeasure;            // measure crosstalk signal
     
    118119bool ppImageSetMaskBits (pmConfig *config, ppImageOptions *options);
    119120
     121// apply the cell flips to the input data before analysis
     122bool ppImageParityFlip (pmConfig *config, const ppImageOptions *options, const pmFPAview *view);
     123
    120124// Loop over the input
    121125bool ppImageLoop(pmConfig *config, ppImageOptions *options);
  • trunk/ppImage/src/ppImageLoop.c

    r23845 r24229  
    9898                    continue;
    9999                }
     100
     101                // perform the detrend analysis
     102                if (!ppImageParityFlip(config, options, view)) {
     103                    ESCAPE("Unable to detrend readout");
     104                }
     105
     106                // XXX TEST:
     107                // psphotSaveImage (NULL, readout->image, "test.image.fits");
    100108
    101109                // XXX set the options->*Mask values here (after the mask images have been loaded
  • trunk/ppImage/src/ppImageOptions.c

    r24079 r24229  
    3636    options->doStats         = false;   // Measure and save image statistics
    3737    options->checkCTE        = false;   // Measure pixel-based variance
     38    options->applyParity     = false;   // Apply Cell parities
    3839
    3940    // output files requested
     
    229230    }
    230231
     232    options->applyParity = psMetadataLookupBool(NULL, recipe, "APPLY.CELL.PARITY");
     233
    231234    // binned image options
    232235    options->xBin1 = psMetadataLookupS32(&status, recipe, "BIN1.XBIN");
Note: See TracChangeset for help on using the changeset viewer.