IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 13, 2006, 6:40:37 PM (20 years ago)
Author:
Paul Price
Message:

Compiled, but concept ingest not yet working, so can't read FPA

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/rel10_ifa/psModules/src/astrom/pmFPAConstruct.c

    r6575 r6580  
    147147        while ((cellName = psListGetAndIncrement(cellNamesIter))) {
    148148            pmCell *cell = pmCellAlloc(chip, cellName); // New cell
    149             pmConceptsReadCell(cell, PM_CONCEPT_SOURCE_DEFAULTS, NULL);
    150149            psFree(cell);               // Drop reference
    151150        }
    152         pmConceptsReadChip(chip, PM_CONCEPT_SOURCE_DEFAULTS, NULL);
    153151        psFree(chip);                   // Drop reference
    154152        psFree(cellNamesIter);
    155153    }
    156154    psFree(componentsIter);
    157     pmConceptsReadFPA(fpa, PM_CONCEPT_SOURCE_DEFAULTS, NULL);
    158155
    159156    return fpa;
     
    166163                    pmCell *cell,       // Cell to which to add, or NULL
    167164                    psMetadata *phu,    // Primary header of file
    168                     const psMetadata *format // Format of file
     165                    psMetadata *format // Format of file
    169166                   )
    170167{
     
    192189    pmHDU *phdu = pmHDUAlloc("PHU");    // The primary header data unit
    193190    phdu->header = psMemIncrRefCounter(phu);
     191    phdu->format = psMemIncrRefCounter(format);
    194192    if (fpa && !fpa->hdu && strcasecmp(phuType, "FPA") == 0) {
    195193        fpa->hdu = phdu;
     194        pmConceptsReadFPA(fpa, PM_CONCEPT_SOURCE_HEADER, NULL);
    196195    } else if (chip && !chip->hdu && strcasecmp(phuType, "CHIP") == 0) {
    197196        chip->hdu = phdu;
     197        pmConceptsReadChip(chip, PM_CONCEPT_SOURCE_HEADER, NULL);
    198198    } else if (cell && !cell->hdu && strcasecmp(phuType, "CELL") == 0) {
    199199        // cell->hdu = phdu;
     
    244244            }
    245245            cell->config = psMemIncrRefCounter(cellData);
    246             pmConceptsReadCell(cell, PM_CONCEPT_SOURCE_CAMERA, NULL);
     246            pmConceptsReadCell(cell, PM_CONCEPT_SOURCE_CAMERA | PM_CONCEPT_SOURCE_DEFAULTS, NULL);
    247247        }
    248248    }
     
    295295                }
    296296                cell->config = psMemIncrRefCounter(cellData);
    297                 pmConceptsReadCell(cell, PM_CONCEPT_SOURCE_CAMERA, NULL);
     297                pmConceptsReadCell(cell, PM_CONCEPT_SOURCE_CAMERA | PM_CONCEPT_SOURCE_DEFAULTS, NULL);
    298298            }
    299299
     
    337337                }
    338338                cell->config = psMemIncrRefCounter(cellData);
    339                 pmConceptsReadCell(cell, PM_CONCEPT_SOURCE_CAMERA, NULL);
     339                pmConceptsReadCell(cell, PM_CONCEPT_SOURCE_CAMERA | PM_CONCEPT_SOURCE_DEFAULTS, NULL);
    340340            }
    341341
     
    346346    }
    347347    psFree(contentsIter);
     348
     349    pmConceptsReadFPA(fpa, PM_CONCEPT_SOURCE_DEFAULTS, NULL);
    348350
    349351    return true;
Note: See TracChangeset for help on using the changeset viewer.