Changeset 12819 for trunk/ppImage/src/ppImageRebinReadout.c
- Timestamp:
- Apr 12, 2007, 9:31:05 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppImageRebinReadout.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImageRebinReadout.c
r12592 r12819 5 5 #include "ppImage.h" 6 6 7 bool ppImageRebinChip (pmConfig *config, pmFPAview *view, char *outName , char *inName) {7 bool ppImageRebinChip (pmConfig *config, pmFPAview *view, char *outName) { 8 8 9 9 pmCell *cell; 10 10 pmReadout *inReadout, *outReadout; 11 12 pmFPAfile *inFile = psMetadataLookupPtr (NULL, config->files, inName);13 if (inFile == NULL) return false;14 11 15 12 pmFPAfile *outFile = psMetadataLookupPtr (NULL, config->files, outName); … … 18 15 // XXX double check that chip != -1? 19 16 20 pmChip *inChip = pmFPAviewThisChip (view, inFile->fpa);17 pmChip *inChip = pmFPAviewThisChip (view, outFile->src); 21 18 pmChip *outChip = pmFPAviewThisChip (view, outFile->fpa); 22 19 if (!pmChipCopyStructure (outChip, inChip, outFile->xBin, outFile->yBin)) { … … 25 22 } 26 23 27 while ((cell = pmFPAviewNextCell (view, inFile->fpa, 1)) != NULL) {24 while ((cell = pmFPAviewNextCell (view, outFile->src, 1)) != NULL) { 28 25 psLogMsg ("ppImageRebinChip", 4, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process); 29 26 if (! cell->process || ! cell->file_exists) { continue; } 30 27 31 28 // process each of the readouts 32 while ((inReadout = pmFPAviewNextReadout (view, inFile->fpa, 1)) != NULL) {29 while ((inReadout = pmFPAviewNextReadout (view, outFile->src, 1)) != NULL) { 33 30 if (! inReadout->data_exists) { continue; } 34 31
Note:
See TracChangeset
for help on using the changeset viewer.
