Changeset 10589 for trunk/ppImage/src/ppImageRebinReadout.c
- Timestamp:
- Dec 8, 2006, 2:43:04 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppImageRebinReadout.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImageRebinReadout.c
r10502 r10589 11 11 12 12 pmFPAfile *inFile = psMetadataLookupPtr (NULL, config->files, inName); 13 if (inFile == NULL) return NULL;13 if (inFile == NULL) return false; 14 14 15 15 pmFPAfile *outFile = psMetadataLookupPtr (NULL, config->files, outName); 16 if (outFile == NULL) return NULL;16 if (outFile == NULL) return false; 17 17 18 18 // XXX double check that chip != -1? … … 20 20 pmChip *inChip = pmFPAviewThisChip (view, inFile->fpa); 21 21 pmChip *outChip = pmFPAviewThisChip (view, outFile->fpa); 22 pmChipCopyStructure (outChip, inChip, outFile->xBin, outFile->yBin); 22 if (!pmChipCopyStructure (outChip, inChip, outFile->xBin, outFile->yBin)) { 23 psError(PS_ERR_UNKNOWN, false, "Unable to copy chip structure."); 24 return false; 25 } 23 26 24 27 while ((cell = pmFPAviewNextCell (view, inFile->fpa, 1)) != NULL) { … … 56 59 binItem->data.S32 = yBin * outFile->yBin; 57 60 } 61 58 62 return true; 59 63 }
Note:
See TracChangeset
for help on using the changeset viewer.
