IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9871


Ignore:
Timestamp:
Nov 6, 2006, 6:12:46 PM (20 years ago)
Author:
Paul Price
Message:

Missed out on wrapping fringe stuff in "doFringe".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppImageLoop.c

    r9857 r9871  
    101101
    102102            // Apply the fringe correction
    103             psTrace("ppImage", 3, "Applying fringe correction...\n");
    104             bool mdok;                          // Status of MD lookup
    105             pmFPAfile *fringeFile = psMetadataLookupPtr(&mdok, config->files, "PPIMAGE.FRINGE");
    106             pmCell *fringeCell = pmFPAviewThisCell(view, fringeFile->fpa);
    107             psImage *fringe = ppImageDetrendFringeGenerate(cell, fringeCell, fringeSoln);
    108             while ((readout = pmFPAviewNextReadout (view, input->fpa, 1)) != NULL) {
    109                 if (!readout->data_exists) { continue; }
     103            if (options->doFringe) {
     104                psTrace("ppImage", 3, "Applying fringe correction...\n");
     105                bool mdok;                          // Status of MD lookup
     106                pmFPAfile *fringeFile = psMetadataLookupPtr(&mdok, config->files, "PPIMAGE.FRINGE");
     107                pmCell *fringeCell = pmFPAviewThisCell(view, fringeFile->fpa);
     108                psImage *fringe = ppImageDetrendFringeGenerate(cell, fringeCell, fringeSoln);
     109                while ((readout = pmFPAviewNextReadout (view, input->fpa, 1)) != NULL) {
     110                    if (!readout->data_exists) { continue; }
    110111
    111                 // XXX: Make generic, so subregions may be subtracted as well
    112                 psBinaryOp(readout->image, readout->image, "-", fringe);
     112                    // XXX: Make generic, so subregions may be subtracted as well
     113                    psBinaryOp(readout->image, readout->image, "-", fringe);
    113114
    114                 if (!pmFPAfileIOChecks (config, view, PM_FPA_AFTER)) return false;
     115                    if (!pmFPAfileIOChecks (config, view, PM_FPA_AFTER)) return false;
     116                }
     117                psFree(fringe);
    115118            }
    116             psFree(fringe);
    117 
    118119
    119120            // Perform statistics on the detrended cell
Note: See TracChangeset for help on using the changeset viewer.