IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 8, 2006, 5:08:08 PM (20 years ago)
Author:
Paul Price
Message:

Broad changes to introduce pmHDU, and allow read/write at any level. Modified the camera configuration to use camera config (components of the camera) and format descriptions (FITS file layout).

File:
1 edited

Legend:

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

    r6448 r6552  
    7373                           )
    7474{
    75     if (! cell->camera) {
     75    if (! cell->config) {
    7676        return false;
    7777    }
    7878    if (cell) {
    79         psMetadataItem *item = psMetadataLookup(cell->camera, concept->name); // Info we want
     79        psMetadataItem *item = psMetadataLookup(cell->config, concept->name); // Info we want
    8080        return compareConcepts(item, concept);
    8181    }
     
    138138            psTrace(__func__, 7, "Adding to the FPA level header...\n");
    139139            psMetadataAddItem(fpa->hdu->header, headerItem, PS_LIST_TAIL, PS_META_REPLACE);
    140             status = true;
    141         } else {
    142             // In desperation, add to the PHU --- it HAS to be in the header somewhere!
    143             if (! fpa->phu) {
    144                 fpa->phu = psMetadataAlloc();
    145             }
    146             psTrace(__func__, 7, "Adding to the PHU...\n");
    147             psMetadataAddItem(fpa->phu, headerItem, PS_LIST_TAIL, PS_META_REPLACE);
    148140            status = true;
    149141        }
Note: See TracChangeset for help on using the changeset viewer.