IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 13, 2006, 5:10:19 PM (21 years ago)
Author:
Paul Price
Message:

Reworked the \'concepts\'; altered FPA hierarchy slightly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_rel9_p0/psModules/src/astrom/pmFPARead.c

    r5796 r5974  
    44
    55#include "pmAstrometry.h"
    6 #include "pmFPAConceptsGet.h"
    76#include "pmFPARead.h"
     7#include "pmConcepts.h"
    88
    99//////////////////////////////////////////////////////////////////////////////////////////////////////////////
     
    157157        }
    158158    }
    159     pmFPAIngestConcepts(fpa, db);
     159    pmConceptsReadFPA(fpa, db);
    160160
    161161    psArray *chips = fpa->chips;        // Array of chips
     
    164164        pmChip *chip = chips->data[i]; // The chip
    165165
    166         // Only read chips marked "valid"
    167         if (! chip->valid) {
     166        // Only read chips marked to "process"
     167        if (! chip->process) {
    168168            psTrace(__func__, 2, "Ignoring chip %d...\n", i);
    169169            continue;
     
    179179            }
    180180        }
    181         pmChipIngestConcepts(chip, db);
     181
     182        pmConceptsReadChip(chip, db);
    182183
    183184        // Iterate over the chip
     
    186187            pmCell *cell = cells->data[j]; // The cell
    187188
    188             // Only read cells marked "valid"
    189             if (! cell->valid) {
     189            // Only read cells marked to "process"
     190            if (! cell->process) {
    190191                psTrace(__func__, 3, "Ignoring chip %d...\n", i);
    191192                continue;
     
    203204                }
    204205            }
    205             pmCellIngestConcepts(cell, db);
     206            pmConceptsReadCell(cell, db);
    206207
    207208            psTrace(__func__, 5, "Allocating readouts for chip %d cell %d...\n",
    208209                    i, j);
    209210            generateReadouts(cell, hdu);
    210         }
     211
     212            cell->exists = true;
     213        }
     214        chip->exists = true;
    211215    }
    212216
     
    396400    for (int chipNum = 0; chipNum < chips->n; chipNum++) {
    397401        pmChip *chip = chips->data[chipNum]; // The current chip of interest
    398         if (chip->valid) {
     402        if (chip->process) {
    399403            if (chip->hdu) {
    400404                hdu = chip->hdu;
     
    403407            for (int cellNum = 0; cellNum < cells->n; cellNum++) {
    404408                pmCell *cell = cells->data[cellNum]; // The current cell of interest
    405                 if (cell->valid) {
     409                if (cell->process) {
    406410                    if (cell->hdu) {
    407411                        hdu = cell->hdu;
     
    534538    for (int chipNum = 0; chipNum < chips->n; chipNum++) {
    535539        pmChip *chip = chips->data[chipNum]; // The current chip of interest
    536         if (chip->valid) {
     540        if (chip->process) {
    537541            if (chip->hdu) {
    538542                hdu = chip->hdu;
     
    541545            for (int cellNum = 0; cellNum < cells->n; cellNum++) {
    542546                pmCell *cell = cells->data[cellNum]; // The current cell of interest
    543                 if (cell->valid) {
     547                if (cell->process) {
    544548                    if (cell->hdu) {
    545549                        hdu = cell->hdu;
Note: See TracChangeset for help on using the changeset viewer.