Changeset 12819
- Timestamp:
- Apr 12, 2007, 9:31:05 AM (19 years ago)
- Location:
- trunk/ppImage/src
- Files:
-
- 3 edited
-
ppImage.h (modified) (1 diff)
-
ppImageLoop.c (modified) (1 diff)
-
ppImageRebinReadout.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImage.h
r12807 r12819 41 41 bool ppImageDetrendNonLinearPolynomial(pmReadout *input, psMetadataItem *dataItem); 42 42 43 bool ppImageRebinChip (pmConfig *config, pmFPAview *view, char *outName , char *inName);43 bool ppImageRebinChip (pmConfig *config, pmFPAview *view, char *outName); 44 44 bool ppImageRebinReadout (pmReadout *output, pmReadout *input, pmFPAfile *outFile); 45 45 -
trunk/ppImage/src/ppImageLoop.c
r12575 r12819 152 152 return false; 153 153 } 154 if (!ppImageRebinChip(config, view, "PPIMAGE.BIN1" , "PPIMAGE.OUTPUT.CHIP")) {154 if (!ppImageRebinChip(config, view, "PPIMAGE.BIN1")) { 155 155 psError(PS_ERR_UNKNOWN, false, "Unable to bin chip.\n"); 156 156 return false; 157 157 } 158 if (!ppImageRebinChip(config, view, "PPIMAGE.BIN2" , "PPIMAGE.OUTPUT.CHIP")) {158 if (!ppImageRebinChip(config, view, "PPIMAGE.BIN2")) { 159 159 psError(PS_ERR_UNKNOWN, false, "Unable to bin chip.\n"); 160 160 return false; -
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.
