IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 4, 2008, 5:47:15 PM (18 years ago)
Author:
Paul Price
Message:

Dump configuration.

File:
1 edited

Legend:

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

    r18724 r18909  
    1111}
    1212
    13 bool ppImageLoop (pmConfig *config, ppImageOptions *options) {
    14 
     13bool ppImageLoop (pmConfig *config, ppImageOptions *options)
     14{
    1515    bool status;
    1616    pmChip *chip;
     
    2727        exit(PS_EXIT_PROG_ERROR);
    2828    }
     29
     30#if 1
     31    {
     32        pmConfigCamerasCull(config);
     33        pmConfigRecipesCull(config, "PPIMAGE,PPSTATS,PSPHOT,MASKS");
     34
     35        const char *outroot = psMetadataLookupStr(NULL, config->arguments, "OUTPUT"); // Output root name
     36        psAssert(outroot, "Should be there, we put it there!");
     37        pmConfigDump(config, input->fpa, outroot);
     38    }
     39#endif
    2940
    3041    pmFPAview *view = pmFPAviewAlloc(0);// View for level of interest
     
    6374                }
    6475
    65                 // XXX set the options->*Mask values here (after the mask images have been loaded
    66                 // and before any of the value are used)
    67                 if (!ppImageSetMaskBits (config, options))
    68                     ESCAPE ("Unable to set bit masks");
     76                // XXX set the options->*Mask values here (after the mask images have been loaded
     77                // and before any of the value are used)
     78                if (!ppImageSetMaskBits (config, options))
     79                    ESCAPE ("Unable to set bit masks");
    6980
    7081                // perform the detrend analysis
    71                 if (!ppImageDetrendReadout(config, options, view)) 
    72                     ESCAPE ("Unable to detrend readout");
     82                if (!ppImageDetrendReadout(config, options, view))
     83                    ESCAPE ("Unable to detrend readout");
    7384            }
    7485        }
     
    7687        // Apply the fringe correction
    7788        if (options->doFringe) {
    78             if (!ppImageDetrendFringeApply (config, chip, view, options))
    79                 ESCAPE ("Unable to defringe");
    80         }
    81        
    82         // measure various statistics for this image
    83         if (!ppImagePixelStats (config, options, view))
    84             ESCAPE ("Unable to measures stats for image");
     89            if (!ppImageDetrendFringeApply (config, chip, view, options))
     90                ESCAPE ("Unable to defringe");
     91        }
     92
     93        // measure various statistics for this image
     94        if (!ppImagePixelStats (config, options, view))
     95            ESCAPE ("Unable to measures stats for image");
    8596
    8697        if (!ppImageMosaicChip(config, options, view, "PPIMAGE.CHIP", "PPIMAGE.OUTPUT"))
     
    92103        }
    93104
    94         // replace the masked pixels with the background level
    95         if (options->replaceMasked) {
    96             if (!ppImageReplaceBackground (config, view, options))
    97                 ESCAPE ("Unable to replace masked pixels with background level");
    98         }
     105        // replace the masked pixels with the background level
     106        if (options->replaceMasked) {
     107            if (!ppImageReplaceBackground (config, view, options))
     108                ESCAPE ("Unable to replace masked pixels with background level");
     109        }
    99110
    100         // binning (used for display) must take place after the background is replaced, if desired
     111        // binning (used for display) must take place after the background is replaced, if desired
    101112        if (!ppImageRebinChip(config, view, options, "PPIMAGE.BIN1"))
    102113            ESCAPE ("Unable to bin chip (level 1).");
     
    129140
    130141    if (psTraceGetLevel("ppImage") >= 3) {
    131         ppImageFileCheck (config);
     142        ppImageFileCheck (config);
    132143    }
    133144
Note: See TracChangeset for help on using the changeset viewer.