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/pmFPAWrite.c

    r5796 r5974  
    44
    55#include "pmAstrometry.h"
    6 #include "pmFPAConceptsSet.h"
    76#include "pmFPARead.h"
     7#include "pmConcepts.h"
    88
    99static bool writeHDU(psFits *fits,      // FITS file to which to write
     
    2929
    3030    psTrace(__func__, 7, "Outgesting FPA concepts...\n");
    31     pmFPAOutgestConcepts(fpa, db);
     31    pmConceptsWriteFPA(fpa, db);
    3232
    3333    // Write the primary header
     
    4040    for (int i = 0; i < chips->n; i++) {
    4141        pmChip *chip = chips->data[i];  // The component chip
    42         if (chip->valid) {
     42        if (chip->exists && chip->process) {
    4343            psTrace(__func__, 1, "Writing out chip %d...\n", i);
    4444
    45             pmChipOutgestConcepts(chip, db);
     45            pmConceptsWriteChip(chip, db);
    4646
    4747            psArray *cells = chip->cells;       // Array of component cells
    4848            for (int j = 0; j < cells->n; j++) {
    4949                pmCell *cell = cells->data[j]; // The component cell
    50                 if (cell->valid) {
     50                if (cell->exists && cell->process) {
    5151                    psTrace(__func__, 2, "Writing out cell, %d...\n", j);
    5252
    53                     pmCellOutgestConcepts(cell, db);
     53                    pmConceptsWriteCell(cell, db);
    5454
    5555                    if (cell->hdu && strlen(cell->hdu->extname) > 0) {
     
    107107    for (int chipNum = 0; chipNum < chips->n; chipNum++) {
    108108        pmChip *chip = chips->data[chipNum]; // The current chip of interest
    109         if (chip->valid) {
     109        if (chip->exists && chip->process) {
    110110            if (chip->hdu) {
    111111                hdu = chip->hdu;
     
    114114            for (int cellNum = 0; cellNum < cells->n; cellNum++) {
    115115                pmCell *cell = cells->data[cellNum]; // The current cell of interest
    116                 if (cell->valid) {
     116                if (cell->exists && cell->process) {
    117117                    if (cell->hdu) {
    118118                        hdu = cell->hdu;
     
    198198    for (int chipNum = 0; chipNum < chips->n; chipNum++) {
    199199        pmChip *chip = chips->data[chipNum]; // The current chip of interest
    200         if (chip->valid) {
     200        if (chip->exists && chip->process) {
    201201            if (chip->hdu) {
    202202                hdu = chip->hdu;
     
    205205            for (int cellNum = 0; cellNum < cells->n; cellNum++) {
    206206                pmCell *cell = cells->data[cellNum]; // The current cell of interest
    207                 if (cell->valid) {
     207                if (cell->exists && cell->process) {
    208208                    if (cell->hdu) {
    209209                        hdu = cell->hdu;
Note: See TracChangeset for help on using the changeset viewer.