IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 5, 2009, 11:13:29 AM (17 years ago)
Author:
beaumont
Message:

Finished ppStack visualization. Unified the way in which visualizations are invoked, plotting windows are closed, etc

Location:
branches/cnb_branches/cnb_branch_20090215
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/cnb_branches/cnb_branch_20090215

  • branches/cnb_branches/cnb_branch_20090215/psModules/src/config/pmConfigCamera.c

    r20048 r23197  
    280280        psMetadata *translation = psMetadataAlloc(); // The TRANSLATION --- how to read the FITS headers
    281281
    282         psList *concepts;               // List of concepts for each level
    283         psListIterator *iter;           // Iterator for concepts
    284         psString name;                  // Concept name, from iteration
    285 
    286         concepts = pmConceptsList(PM_FPA_LEVEL_FPA); // FPA-level concepts
    287         iter = psListIteratorAlloc(concepts, PS_LIST_HEAD, false);
    288         while ((name = psListGetAndIncrement(iter))) {
    289             const char *new = skycellConceptName(name, skycellConceptsFPA, system); // Name for skycell
     282        psMetadata *concepts;           // List of concepts for each level
     283        psMetadataIterator *iter;       // Iterator for concepts
     284        psMetadataItem *item;           // Concept specification item, from iteration
     285
     286        concepts = pmConceptsSpecs(PM_FPA_LEVEL_FPA); // FPA-level concepts
     287        iter = psMetadataIteratorAlloc(concepts, PS_LIST_HEAD, NULL);
     288        while ((item = psMetadataGetAndIncrement(iter))) {
     289            const char *new = skycellConceptName(item->name, skycellConceptsFPA, system); // Name for skycell
    290290            if (new) {
    291                 psMetadataAddStr(translation, PS_LIST_TAIL, name, 0, NULL, new);
     291                psMetadataAddStr(translation, PS_LIST_TAIL, item->name, 0, NULL, new);
    292292            }
    293293        }
    294294        psFree(iter);
    295         psFree(concepts);
    296 
    297         concepts = pmConceptsList(PM_FPA_LEVEL_CHIP);
    298         iter = psListIteratorAlloc(concepts, PS_LIST_HEAD, false);
    299         while ((name = psListGetAndIncrement(iter))) {
    300             const char *new = skycellConceptName(name, skycellConceptsChip, system); // Name for skycell
     295
     296        concepts = pmConceptsSpecs(PM_FPA_LEVEL_CHIP);
     297        iter = psMetadataIteratorAlloc(concepts, PS_LIST_HEAD, NULL);
     298        while ((item = psMetadataGetAndIncrement(iter))) {
     299            const char *new = skycellConceptName(item->name, skycellConceptsChip, system); // Name for skycell
    301300            if (new) {
    302                 psMetadataAddStr(translation, PS_LIST_TAIL, name, 0, NULL, new);
     301                psMetadataAddStr(translation, PS_LIST_TAIL, item->name, 0, NULL, new);
    303302            }
    304303        }
    305304        psFree(iter);
    306         psFree(concepts);
    307 
    308         concepts = pmConceptsList(PM_FPA_LEVEL_CELL);
    309         iter = psListIteratorAlloc(concepts, PS_LIST_HEAD, false);
    310         while ((name = psListGetAndIncrement(iter))) {
    311             const char *new = skycellConceptName(name, skycellConceptsCell, system); // Name for skycell
     305
     306        concepts = pmConceptsSpecs(PM_FPA_LEVEL_CELL);
     307        iter = psMetadataIteratorAlloc(concepts, PS_LIST_HEAD, false);
     308        while ((item = psMetadataGetAndIncrement(iter))) {
     309            const char *new = skycellConceptName(item->name, skycellConceptsCell, system); // Name for skycell
    312310            if (new) {
    313                 psMetadataAddStr(translation, PS_LIST_TAIL, name, 0, NULL, new);
     311                psMetadataAddStr(translation, PS_LIST_TAIL, item->name, 0, NULL, new);
    314312            }
    315313        }
    316314        psFree(iter);
    317         psFree(concepts);
    318315
    319316        psMetadataAddMetadata(format, PS_LIST_TAIL, "TRANSLATION", 0, "How to translate the FITS headers",
Note: See TracChangeset for help on using the changeset viewer.