Changeset 6897 for trunk/ppImage/src/ppTest.c
- Timestamp:
- Apr 18, 2006, 5:38:18 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppTest.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppTest.c
r6858 r6897 74 74 } 75 75 76 #if 1 76 77 const char *outName = psMetadataLookupStr(NULL, config->arguments, "-output"); 77 78 psLogMsg("ppImage", PS_LOG_INFO, "Opening output image: %s\n", outName); … … 82 83 exit(EXIT_FAILURE); 83 84 } 85 #endif 84 86 85 87 // Construct camera in preparation for reading … … 97 99 // Read the FPA 98 100 psArray *chips = fpa->chips; 101 pmFPAWrite(fpa, outFile, NULL, false); 99 102 for (int i = 0; i < chips->n; i++) { 100 103 pmChip *chip = chips->data[i]; 104 pmChipWrite(chip, outFile, NULL, false); 101 105 psArray *cells = chip->cells; 102 106 for (int j = 0; j < cells->n; j++) { 103 107 pmCell *cell = cells->data[j]; 104 #if 0 108 pmCellWrite(cell, outFile, NULL, false); 109 #if 1 105 110 pmReadout *readout = pmReadoutAlloc(cell); 106 111 for (int z = 0; pmReadoutReadNext(readout, inFile, z, 100); z++) { 107 112 do { 108 // printf("Chip %d, Cell %d, Plane %d, row0 = %d\n", i, j, z, readout->row0); 109 //pmFPAPrint(fpa, false, false); 113 printf("Chip %d, Cell %d, Plane %d, row0 = %d\n", i, j, z, readout->row0); 114 pmReadoutWriteNext(readout, outFile, z); 115 //pmFPAPrint(fpa, false, true); 110 116 } while (pmReadoutReadNext(readout, inFile, z, 2048)); 111 117 } … … 136 142 #endif 137 143 144 psFitsClose(outFile); 138 145 psFree(view); 139 146 psFree(fpa); 140 147 psFree(config); 141 psFitsClose(outFile);142 148 psFitsClose(inFile); 143 149 psFree(phu);
Note:
See TracChangeset
for help on using the changeset viewer.
