Changeset 5651 for trunk/archive/scripts/src/phase2/pmFPAConstruct.c
- Timestamp:
- Nov 30, 2005, 6:03:51 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/archive/scripts/src/phase2/pmFPAConstruct.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/scripts/src/phase2/pmFPAConstruct.c
r5633 r5651 272 272 ) 273 273 { 274 psTrace(__func__, 0, "FPA:\n");274 psTrace(__func__, 1, "FPA:\n"); 275 275 if (fpa->hdu) { 276 psTrace(__func__, 1, "---> FPA is extension %s.\n", fpa->hdu->extname);276 psTrace(__func__, 2, "---> FPA is extension %s.\n", fpa->hdu->extname); 277 277 if (! fpa->hdu->images) { 278 psTrace(__func__, 1, "---> NO PIXELS for extension %s\n", fpa->hdu->extname); 279 } 280 } 278 psTrace(__func__, 2, "---> NO PIXELS for extension %s\n", fpa->hdu->extname); 279 } 280 } 281 psMetadataPrint(fpa->concepts, 2); 281 282 282 283 psArray *chips = fpa->chips; // Array of chips 283 284 // Iterate over the FPA 284 285 for (int i = 0; i < chips->n; i++) { 285 psTrace(__func__, 1, "Chip: %d\n", i);286 psTrace(__func__, 3, "Chip: %d\n", i); 286 287 pmChip *chip = chips->data[i]; // The chip 287 288 if (chip->hdu) { 288 psTrace(__func__, 2, "---> Chip is extension %s.\n", chip->hdu->extname);289 psTrace(__func__, 4, "---> Chip is extension %s.\n", chip->hdu->extname); 289 290 if (! chip->hdu->images) { 290 psTrace(__func__, 2, "---> NO PIXELS for extension %s\n", chip->hdu->extname); 291 } 292 } 291 psTrace(__func__, 4, "---> NO PIXELS for extension %s\n", chip->hdu->extname); 292 } 293 } 294 psMetadataPrint(chip->concepts, 4); 295 293 296 // Iterate over the chip 294 297 psArray *cells = chip->cells; // Array of cells 295 298 for (int j = 0; j < cells->n; j++) { 296 psTrace(__func__, 2, "Cell: %d\n", j);299 psTrace(__func__, 5, "Cell: %d\n", j); 297 300 pmCell *cell = cells->data[j]; // The cell 298 301 if (cell->hdu) { 299 psTrace(__func__, 3, "---> Cell is extension %s.\n", cell->hdu->extname);302 psTrace(__func__, 6, "---> Cell is extension %s.\n", cell->hdu->extname); 300 303 if (! cell->hdu->images) { 301 psTrace(__func__, 3, "---> NO PIXELS for extension %s\n", cell->hdu->extname); 302 } 303 } 304 psMetadataPrint(cell->concepts, 3); 305 psTrace(__func__, 3, "Readouts:\n"); 304 psTrace(__func__, 6, "---> NO PIXELS for extension %s\n", cell->hdu->extname); 305 } 306 } 307 psMetadataPrint(cell->concepts, 6); 308 309 psTrace(__func__, 7, "Readouts:\n"); 306 310 psArray *readouts = cell->readouts; // Array of readouts 307 311 for (int k = 0; k < readouts->n; k++) { 308 312 pmReadout *readout = readouts->data[k]; // The readout 309 313 psImage *image = readout->image; // The image 310 psTrace(__func__, 4, "Image: [%d:%d,%d:%d] (%dx%d)\n", image->col0, image->col0 +314 psTrace(__func__, 8, "Image: [%d:%d,%d:%d] (%dx%d)\n", image->col0, image->col0 + 311 315 image->numCols, image->row0, image->row0 + image->numRows, image->numCols, 312 316 image->numRows);
Note:
See TracChangeset
for help on using the changeset viewer.
