IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 23411


Ignore:
Timestamp:
Mar 18, 2009, 4:35:35 PM (17 years ago)
Author:
eugene
Message:

add Check CTE analysis to ppImage (merge from eam_branches_20090312

Location:
trunk/ppImage
Files:
6 edited
2 copied

Legend:

Unmodified
Added
Removed
  • trunk/ppImage

  • trunk/ppImage/src/Makefile.am

    r23229 r23411  
    3838        ppImageDefineFile.c \
    3939        ppImageSetMaskBits.c \
     40        ppImageCheckCTE.c \
    4041        ppImageFileCheck.c \
    4142        ppImageVersion.c \
  • trunk/ppImage/src/ppImage.h

    r23229 r23411  
    4040    bool doAstromMosaic;                // full-mosaic Astrometry
    4141    bool doStats;                       // call ppStats on the image
     42    bool checkCTE;                      // measure pixel-based variance
    4243
    4344    // output files requested
     
    133134bool ppImageFringeFree(pmConfig *config, pmFPAview *view);
    134135
     136bool ppImageCheckCTE(pmConfig *config, ppImageOptions *options, pmFPAview *view);
     137
    135138// Record which detrend file was used for the detrending
    136139bool ppImageDetrendRecord(
  • trunk/ppImage/src/ppImageLoop.c

    r23259 r23411  
    9494                if (!ppImageDetrendFree (config, view)) {
    9595                    ESCAPE("Unable to free detrend images");
     96                }
     97
     98                // optionally measure CTE by examining the variance in a box
     99                if (!ppImageCheckCTE (config, options, view)) {
     100                    ESCAPE("Unable to measure CTE");
    96101                }
    97102            }
  • trunk/ppImage/src/ppImageOptions.c

    r23229 r23411  
    3333    options->doAstromMosaic  = false;   // Astrometry (full-mosaic)
    3434    options->doStats         = false;   // Measure and save image statistics
     35    options->checkCTE        = false;   // Measure pixel-based variance
    3536
    3637    // output files requested
     
    258259    options->doBG           = psMetadataLookupBool(NULL, recipe, "BACKGROUND");
    259260
     261    options->checkCTE       = psMetadataLookupBool(NULL, recipe, "CHECK.CTE");
     262
    260263    // even if not requested explicitly, if any of these are set, build an internal mask and variance:
    261264    if (options->doBias || options->doOverscan || options->doDark || options->doShutter || options->doFlat ||
  • trunk/ppImage/src/ppImageParseCamera.c

    r23268 r23411  
    154154    }
    155155
     156    if (options->checkCTE && false) {
     157        int DX = psMetadataLookupS32 (&status, recipe, "CTE.XBIN");
     158        int DY = psMetadataLookupS32 (&status, recipe, "CTE.YBIN");
     159        pmFPAfile *outCTE = pmFPAfileDefineFromFile (config, input, DX, DY, "PPIMAGE.CTEMAP");
     160        if (!outCTE) {
     161            psError(PSPHOT_ERR_CONFIG, false, "Cannot find a rule for PPIMAGE.CTEMAP");
     162            return false;
     163        }
     164        outCTE->save = true;
     165    }
     166
    156167    // the following files are output targets
    157168    pmFPAfile *outImage = pmFPAfileDefineOutput(config, input->fpa, "PPIMAGE.OUTPUT");
Note: See TracChangeset for help on using the changeset viewer.