Changeset 7639 for trunk/ppImage/src/ppImage.c
- Timestamp:
- Jun 22, 2006, 10:38:23 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppImage.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImage.c
r7581 r7639 35 35 return EXIT_SUCCESS; 36 36 } 37 38 void ppImageFileCheck (pmConfig *config) { 39 40 // add the output names to the output-type files 41 psMetadataItem *item = NULL; 42 psMetadataIterator *iter = psMetadataIteratorAlloc (config->files, PS_LIST_HEAD, NULL); 43 while ((item = psMetadataGetAndIncrement (iter)) != NULL) { 44 pmFPAfile *file = item->data.V; 45 pmFPA *fpa = file->fpa; 46 fprintf (stderr, "file %s\n", file->name); 47 if (!fpa) { 48 fprintf (stderr, " has no FPA\n"); 49 continue; 50 } 51 if (fpa->hdu) { 52 if (fpa->hdu->images) fprintf (stderr, " (%d,%d) images\n", -1, -1); 53 if (fpa->hdu->weights) fprintf (stderr, " (%d,%d) weights\n", -1, -1); 54 if (fpa->hdu->masks) fprintf (stderr, " (%d,%d) masks\n", -1, -1); 55 if (fpa->hdu->header) fprintf (stderr, " (%d,%d) header\n", -1, -1); 56 continue; 57 } 58 fprintf (stderr, " has no fpa data (%d,%d)\n", -1, -1); 59 for (int i = 0; i < fpa->chips->n; i++) { 60 pmChip *chip = fpa->chips->data[i]; 61 if (chip->hdu) { 62 if (chip->hdu->images) fprintf (stderr, " (%d,%d) images\n", i, -1); 63 if (chip->hdu->weights) fprintf (stderr, " (%d,%d) weights\n", i, -1); 64 if (chip->hdu->masks) fprintf (stderr, " (%d,%d) masks\n", i, -1); 65 if (chip->hdu->header) fprintf (stderr, " (%d,%d) header\n", i, -1); 66 continue; 67 } 68 fprintf (stderr, " has no chip data (%d,%d)\n", i, -1); 69 for (int j = 0; j < chip->cells->n; j++) { 70 pmCell *cell = chip->cells->data[j]; 71 if (cell->hdu) { 72 if (cell->hdu->images) fprintf (stderr, " (%d,%d) images\n", i, j); 73 if (cell->hdu->weights) fprintf (stderr, " (%d,%d) weights\n", i, j); 74 if (cell->hdu->masks) fprintf (stderr, " (%d,%d) masks\n", i, j); 75 if (cell->hdu->header) fprintf (stderr, " (%d,%d) header\n", i, j); 76 continue; 77 } 78 fprintf (stderr, " has no cell data (%d,%d)\n", i, j); 79 } 80 } 81 } 82 psFree (iter); 83 }
Note:
See TracChangeset
for help on using the changeset viewer.
