Changeset 13901 for trunk/ppImage/src/ppImage.c
- Timestamp:
- Jun 19, 2007, 4:49:08 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppImage.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImage.c
r13843 r13901 18 18 if (config == NULL) { 19 19 psErrorStackPrint(stderr, "Unable to parse command-line arguments."); 20 ppImageCleanup(config, NULL); 20 21 exit(PS_EXIT_CONFIG_ERROR); 21 22 } … … 26 27 if (options == NULL) { 27 28 psErrorStackPrint(stderr, "Unable to parse camera."); 29 ppImageCleanup(config, options); 28 30 exit(PS_EXIT_CONFIG_ERROR); 29 31 } … … 32 34 if (!ppImageLoop(config, options)) { 33 35 psErrorStackPrint(stderr, "Unable to loop over input"); 36 ppImageCleanup(config, options); 34 37 exit(PS_EXIT_SYS_ERROR); 35 38 } … … 62 65 if (fpa->hdu->header) fprintf (stderr, " (%d,%d) header\n", -1, -1); 63 66 } else { 64 // fprintf (stderr, " has no fpa data (%d,%d)\n", -1, -1);65 }67 // fprintf (stderr, " has no fpa data (%d,%d)\n", -1, -1); 68 } 66 69 for (int i = 0; i < fpa->chips->n; i++) { 67 70 pmChip *chip = fpa->chips->data[i]; … … 72 75 if (chip->hdu->header) fprintf (stderr, " (%d,%d) header\n", i, -1); 73 76 } else { 74 // fprintf (stderr, " has no chip data (%d,%d)\n", i, -1);75 }77 // fprintf (stderr, " has no chip data (%d,%d)\n", i, -1); 78 } 76 79 for (int j = 0; j < chip->cells->n; j++) { 77 80 pmCell *cell = chip->cells->data[j]; … … 82 85 if (cell->hdu->header) fprintf (stderr, " (%d,%d) header\n", i, j); 83 86 } else { 84 // fprintf (stderr, " has no cell data (%d,%d)\n", i, j);85 }86 for (int k = 0; k < cell->readouts->n; k++) {87 pmReadout *readout = cell->readouts->data[k];88 if (readout) {89 if (readout->image) fprintf (stderr, " (%d,%d,%d) image\n", i, j, k);90 if (readout->weight) fprintf (stderr, " (%d,%d,%d) weight\n", i, j, k);91 if (readout->mask) fprintf (stderr, " (%d,%d,%d) masks\n", i, j, k);92 }93 }87 // fprintf (stderr, " has no cell data (%d,%d)\n", i, j); 88 } 89 for (int k = 0; k < cell->readouts->n; k++) { 90 pmReadout *readout = cell->readouts->data[k]; 91 if (readout) { 92 if (readout->image) fprintf (stderr, " (%d,%d,%d) image\n", i, j, k); 93 if (readout->weight) fprintf (stderr, " (%d,%d,%d) weight\n", i, j, k); 94 if (readout->mask) fprintf (stderr, " (%d,%d,%d) masks\n", i, j, k); 95 } 96 } 94 97 } 95 98 }
Note:
See TracChangeset
for help on using the changeset viewer.
