IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 18, 2005, 4:19:41 PM (21 years ago)
Author:
Paul Price
Message:

Current state before I go on holiday. Not sure if it works or not. Not current for pslib8.

File:
1 edited

Legend:

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

    r5104 r5371  
    8888                psString extName = contentItem->name; // The name of the extension
    8989                pmChip *chip = pmChipAlloc(fpa, extName); // The chip
    90                 chip->private = p_pmHDUAlloc(extName); // Prepare chip to receive FITS data
     90                chip->data = pmPixelDataAlloc(extName); // Prepare chip to receive FITS data
    9191                if (contentItem->type != PS_META_STR) {
    9292                    psLogMsg(__func__, PS_LOG_WARN, "Type of content item (%x) is not string: ignored\n",
     
    146146                    pmCell *cell = pmCellAlloc(chip, cellData, extName); // The cell
    147147//                  psFree(cellData);
    148                     cell->private = p_pmHDUAlloc(extName); // Prepare cell to receive FITS data
     148                    cell->data = pmPixelDataAlloc(extName); // Prepare cell to receive FITS data
    149149
    150150                    psFree(chip);
     
    157157        } else if (strcasecmp(extType, "NONE") == 0) {
    158158            // No extensions; Content contains metadata, each entry is a chip with its component cells
    159             fpa->private = p_pmHDUAlloc("PHU"); // Prepare FPA to receive FITS data
     159            fpa->data = pmPixelDataAlloc("PHU"); // Prepare FPA to receive FITS data
    160160            while (contentItem = psMetadataGetAndIncrement(contentsIter)) {
    161161                psString chipName = contentItem->name; // The name of the chip
     
    196196        if (strcasecmp(extType, "NONE") == 0) {
    197197            // There are no extensions --- only the PHU
    198             chip->private = p_pmHDUAlloc("PHU");
     198            chip->data = pmPixelDataAlloc("PHU");
    199199
    200200            const char *contents = psMetadataLookupString(&mdStatus, camera, "CONTENTS");
     
    247247                pmCell *cell = pmCellAlloc(chip, cellData, extName); // The cell
    248248//              psFree(cellData);
    249                 cell->private = p_pmHDUAlloc(extName); // Prepare cell to receive FITS data
     249                cell->data = pmPixelDataAlloc(extName); // Prepare cell to receive FITS data
    250250            } // Iterating through contents
    251251            psFree(contentsIter);
     
    273273{
    274274    psTrace(__func__, 0, "FPA:\n");
    275     if (fpa->private) {
    276         psTrace(__func__, 1, "---> FPA is extension %s.\n", fpa->private->extname);
    277         if (! fpa->private->pixels) {
    278             psTrace(__func__, 1, "---> NO PIXELS for extension %s\n", fpa->private->extname);
     275    if (fpa->data) {
     276        psTrace(__func__, 1, "---> FPA is extension %s.\n", fpa->data->extname);
     277        if (! fpa->data->images) {
     278            psTrace(__func__, 1, "---> NO PIXELS for extension %s\n", fpa->data->extname);
    279279        }
    280280    }
     
    285285        psTrace(__func__, 1, "Chip: %d\n", i);
    286286        pmChip *chip = chips->data[i]; // The chip
    287         if (chip->private) {
    288             psTrace(__func__, 2, "---> Chip is extension %s.\n", chip->private->extname);
    289             if (! chip->private->pixels) {
    290                 psTrace(__func__, 2, "---> NO PIXELS for extension %s\n", chip->private->extname);
     287        if (chip->data) {
     288            psTrace(__func__, 2, "---> Chip is extension %s.\n", chip->data->extname);
     289            if (! chip->data->images) {
     290                psTrace(__func__, 2, "---> NO PIXELS for extension %s\n", chip->data->extname);
    291291            }
    292292        }
     
    296296            psTrace(__func__, 2, "Cell: %d\n", j);
    297297            pmCell *cell = cells->data[j]; // The cell
    298             if (cell->private) {
    299                 psTrace(__func__, 3, "---> Cell is extension %s.\n", cell->private->extname);
    300                 if (! cell->private->pixels) {
    301                     psTrace(__func__, 3, "---> NO PIXELS for extension %s\n", cell->private->extname);
     298            if (cell->data) {
     299                psTrace(__func__, 3, "---> Cell is extension %s.\n", cell->data->extname);
     300                if (! cell->data->images) {
     301                    psTrace(__func__, 3, "---> NO PIXELS for extension %s\n", cell->data->extname);
    302302                }
    303303            }
     
    311311                        image->numCols, image->row0, image->row0 + image->numRows, image->numCols,
    312312                        image->numRows);
    313                 psList *overscans = readout->overscans; // The list of overscans
    314                 psListIterator *overscansIter = psListIteratorAlloc(overscans, PS_LIST_HEAD, false);
    315                 while (image = psListGetAndIncrement(overscansIter)) {
    316                     psTrace(__func__, 4, "Overscan: [%d:%d,%d:%d] (%dx%d)\n", image->col0, image->col0 +
    317                             image->numCols, image->row0, image->row0 + image->numRows, image->numCols,
    318                             image->numRows);
    319                 }
    320                 psFree(overscansIter);
    321 
    322313            } // Iterating over cell
    323314        } // Iterating over chip
Note: See TracChangeset for help on using the changeset viewer.