Changeset 18930 for trunk/ppMerge/src/ppMergeScaleZero.c
- Timestamp:
- Aug 5, 2008, 4:08:29 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ppMerge/src/ppMergeScaleZero.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppMerge/src/ppMergeScaleZero.c
r18756 r18930 12 12 psStatsOptions stdevStat = psMetadataLookupS32(NULL, config->arguments, "STDEV"); // Statistic for stdev 13 13 int shutterSize = psMetadataLookupS32(NULL, config->arguments, "SHUTTER.SIZE"); // Size of shutter region 14 15 psMaskType maskVal = pmConfigMaskGet("MASK.VALUE", config); // Value to mask16 14 17 15 psVector *gains = NULL; // Gains for each cell … … 82 80 pmReadout *readout = cell->readouts->data[0]; // Readout of interest 83 81 82 psMaskType maskVal = pmConfigMaskGet("MASK.VALUE", config); // Value to mask 83 84 84 switch (type) { 85 85 case PPMERGE_TYPE_FLAT: … … 88 88 float gain = psMetadataLookupF32(NULL, cell->concepts, "CELL.GAIN"); // Cell gain 89 89 if (!isfinite(gain)) { 90 // psError(PS_ERR_BAD_PARAMETER_VALUE, false,91 // "CELL.GAIN for file %d chip %d cell %d is not set.",92 // i, view->chip, view->cell);93 // goto ERROR;94 psWarning ("CELL.GAIN for file %d chip %d cell %d is NaN", i, view->chip, view->cell);90 // psError(PS_ERR_BAD_PARAMETER_VALUE, false, 91 // "CELL.GAIN for file %d chip %d cell %d is not set.", 92 // i, view->chip, view->cell); 93 // goto ERROR; 94 psWarning ("CELL.GAIN for file %d chip %d cell %d is NaN", i, view->chip, view->cell); 95 95 } 96 96 gains->data.F32[cellNum] = gain; … … 98 98 // Measure the background 99 99 if (!psImageBackground(stats, NULL, readout->image, readout->mask, maskVal, rng)) { 100 // psError(PS_ERR_UNKNOWN, false,101 // "Unable to get statistics for file %d chip %d cell %d",102 // i, view->chip, view->cell);103 // goto ERROR;104 psWarning ("Unable to get statistics for file %d chip %d cell %d", i, view->chip, view->cell);105 background->data.F32[i][cellNum] = NAN;100 // psError(PS_ERR_UNKNOWN, false, 101 // "Unable to get statistics for file %d chip %d cell %d", 102 // i, view->chip, view->cell); 103 // goto ERROR; 104 psWarning ("Unable to get statistics for file %d chip %d cell %d", i, view->chip, view->cell); 105 background->data.F32[i][cellNum] = NAN; 106 106 } else { 107 background->data.F32[i][cellNum] = psStatsGetValue(stats, meanStat);108 }107 background->data.F32[i][cellNum] = psStatsGetValue(stats, meanStat); 108 } 109 109 break; 110 110 }
Note:
See TracChangeset
for help on using the changeset viewer.
