IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28043 for trunk/ppImage/src


Ignore:
Timestamp:
May 19, 2010, 5:13:52 PM (16 years ago)
Author:
watersc1
Message:

Merging czw_branch (maskstats and software versions) back into the trunk

Location:
trunk
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/ppImage/src/Makefile.am

    r25930 r28043  
    4444        ppImageRebinReadout.c \
    4545        ppImageMosaic.c \
     46        ppImageMaskStats.c \
    4647        ppImagePhotom.c \
    4748        ppImageAstrom.c \
  • trunk/ppImage/src/ppImage.h

    r26895 r28043  
    4949    bool applyParity;                   // Apply Cell parities
    5050
     51  bool doMaskStats;                      // Calculate mask statistics
     52 
    5153    bool doCrosstalkMeasure;            // measure crosstalk signal
    5254    bool doCrosstalkCorrect;            // apply crosstalk correction
     
    110112
    111113    char *normClass;                    // class to use for per-class normalization
     114
     115  psU16 maskstat_static;
     116  psU16 maskstat_dynamic;
     117  psU16 maskstat_magic;
     118  psU16 maskstat_advisory;
     119 
    112120} ppImageOptions;
    113121
     
    268276    );
    269277
     278// Calculate Mask statistics
     279bool ppImageMaskStats(pmConfig *config, pmFPAview *view, psMetadata *stats);
     280
    270281// calculate stats from headers and concepts
    271282bool ppImageMetadataStats(pmConfig *config, // Configuration
  • trunk/ppImage/src/ppImageLoop.c

    r27556 r28043  
    196196        }
    197197
     198        if (options->doMaskStats) {
     199          //if (!ppImageMaskStats(config, view, options)) {
     200          if (!ppImageMaskStats(config, view, stats)) {
     201            ESCAPE("Unable to do Mask stats");
     202          }
     203        }
     204       
    198205        // these may be used by ppImageSubtractBackground.
    199206        // if these are defined as internal files, drop them here
     
    252259        ppImageFileCheck(config);
    253260    }
    254 
     261   
    255262    // Calculate summary statistics from FPA Metadata
    256263    if (!ppImageMetadataStats(config, stats, options)) {
  • trunk/ppImage/src/ppImageOptions.c

    r26895 r28043  
    4141    options->checkCTE        = false;   // Measure pixel-based variance
    4242    options->applyParity     = false;   // Apply Cell parities
    43 
     43    options->doMaskStats     = false;   // Calculate mask fractions
     44   
    4445    // output files requested
    4546    options->BaseFITS        = false;   // create output image
     
    243244    options->doPatternRow = psMetadataLookupBool(NULL, recipe, "PATTERN.ROW");
    244245    options->doPatternCell = psMetadataLookupBool(NULL, recipe, "PATTERN.CELL");
     246    options->doMaskStats = psMetadataLookupBool(NULL, recipe, "MASK.STATS");
    245247
    246248    options->doStats = false;
     
    341343    options->normClass = psMetadataLookupStr(NULL, recipe, "NORM.CLASS");
    342344
     345    options->maskstat_static   = psMetadataLookupU16(NULL, recipe, "MASKSTAT.STATIC");
     346    options->maskstat_dynamic  = psMetadataLookupU16(NULL, recipe, "MASKSTAT.DYNAMIC");
     347    options->maskstat_magic    = psMetadataLookupU16(NULL, recipe, "MASKSTAT.MAGIC");
     348    options->maskstat_advisory = psMetadataLookupU16(NULL, recipe, "MASKSTAT.ADVISORY");
     349
     350   
    343351    return options;
    344352}
  • trunk/ppImage/src/ppImageVersion.c

    r23796 r28043  
    6868    psString source  = ppImageSource();  // ppImage software source
    6969
     70    psMetadataAddStr(header, PS_LIST_TAIL, "IMAGE_V", PS_META_REPLACE, NULL, PPIMAGE_VERSION);
     71   
    7072    psStringPrepend(&version, "ppImage version: ");
    7173    psStringPrepend(&source, "ppImage source: ");
Note: See TracChangeset for help on using the changeset viewer.