IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 30, 2005, 6:03:51 PM (21 years ago)
Author:
Paul Price
Message:

pmFPAMorph compiles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/scripts/src/phase2/pmFPAConstruct.c

    r5633 r5651  
    272272    )
    273273{
    274     psTrace(__func__, 0, "FPA:\n");
     274    psTrace(__func__, 1, "FPA:\n");
    275275    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);
    277277        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);
    281282
    282283    psArray *chips = fpa->chips;        // Array of chips
    283284    // Iterate over the FPA
    284285    for (int i = 0; i < chips->n; i++) {
    285         psTrace(__func__, 1, "Chip: %d\n", i);
     286        psTrace(__func__, 3, "Chip: %d\n", i);
    286287        pmChip *chip = chips->data[i]; // The chip
    287288        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);
    289290            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
    293296        // Iterate over the chip
    294297        psArray *cells = chip->cells;   // Array of cells
    295298        for (int j = 0; j < cells->n; j++) {
    296             psTrace(__func__, 2, "Cell: %d\n", j);
     299            psTrace(__func__, 5, "Cell: %d\n", j);
    297300            pmCell *cell = cells->data[j]; // The cell
    298301            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);
    300303                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");
    306310            psArray *readouts = cell->readouts; // Array of readouts
    307311            for (int k = 0; k < readouts->n; k++) {
    308312                pmReadout *readout = readouts->data[k]; // The readout
    309313                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 +
    311315                        image->numCols, image->row0, image->row0 + image->numRows, image->numCols,
    312316                        image->numRows);
Note: See TracChangeset for help on using the changeset viewer.