Changeset 24782 for trunk/ppMerge/src/ppMergeLoop.c
- Timestamp:
- Jul 12, 2009, 5:44:35 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ppMerge/src/ppMergeLoop.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppMerge/src/ppMergeLoop.c
r24118 r24782 94 94 psVector *scales = NULL, *zeros = NULL; ///< Scale and zeroes for combination 95 95 psArray *shutters = NULL; ///< Shutter correction data 96 psImage *zeroSet = NULL; 96 97 switch (type) { 97 98 case PPMERGE_TYPE_FRINGE: 98 zero s= psMetadataLookupPtr(NULL, arguments, "ZEROS");99 if (!zero s) {99 zeroSet = psMetadataLookupPtr(NULL, arguments, "ZEROS"); 100 if (!zeroSet) { 100 101 psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to find ZEROS"); 101 102 goto ERROR; 102 103 } 104 // the zeros vector is passed to pmReadoutCombine for each set of inputs per cell 105 zeros = psVectorAlloc(zeroSet->numRows, PS_TYPE_F32); 103 106 // Flow through 104 107 case PPMERGE_TYPE_FLAT: … … 140 143 pmFPA *outFPA = output->fpa; ///< Output FPA 141 144 pmHDU *lastHDU = NULL; // Last HDU that was updated 145 142 146 int cellNum = 0; ///< Index of cell 143 147 if (!pmFPAfileIOChecks(config, view, PM_FPA_BEFORE)) { … … 194 198 } 195 199 200 if (zeroSet) { 201 for (int i = 0; i < zeroSet->numRows; i++) { 202 zeros->data.F32[i] = zeroSet->data.F32[i][cellNum]; 203 } 204 } 205 196 206 ppMergeFileGroup *fileGroup = NULL; 197 207 psArray *fileGroups = psArrayAlloc(nThreads + 1); … … 335 345 336 346 psFree(fileGroups); 347 psFree(zeros); 337 348 338 349 // XXX eventually need to keep both the shutter and the pattern, as we do with dark
Note:
See TracChangeset
for help on using the changeset viewer.
