Changeset 22699 for trunk/psModules/src/config/pmConfigCamera.c
- Timestamp:
- Feb 26, 2009, 2:45:31 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/config/pmConfigCamera.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/config/pmConfigCamera.c
r20048 r22699 280 280 psMetadata *translation = psMetadataAlloc(); // The TRANSLATION --- how to read the FITS headers 281 281 282 ps List *concepts;// List of concepts for each level283 ps ListIterator *iter;// Iterator for concepts284 ps String name; // Concept name, from iteration285 286 concepts = pmConcepts List(PM_FPA_LEVEL_FPA); // FPA-level concepts287 iter = ps ListIteratorAlloc(concepts, PS_LIST_HEAD, false);288 while (( name = psListGetAndIncrement(iter))) {289 const char *new = skycellConceptName( name, skycellConceptsFPA, system); // Name for skycell282 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 290 290 if (new) { 291 psMetadataAddStr(translation, PS_LIST_TAIL, name, 0, NULL, new);291 psMetadataAddStr(translation, PS_LIST_TAIL, item->name, 0, NULL, new); 292 292 } 293 293 } … … 295 295 psFree(concepts); 296 296 297 concepts = pmConcepts List(PM_FPA_LEVEL_CHIP);298 iter = ps ListIteratorAlloc(concepts, PS_LIST_HEAD, false);299 while (( name = psListGetAndIncrement(iter))) {300 const char *new = skycellConceptName( name, skycellConceptsChip, system); // Name for skycell297 concepts = pmConceptsSpecs(PM_FPA_LEVEL_CHIP); 298 iter = psMetadataIteratorAlloc(concepts, PS_LIST_HEAD, NULL); 299 while ((item = psMetadataGetAndIncrement(iter))) { 300 const char *new = skycellConceptName(item->name, skycellConceptsChip, system); // Name for skycell 301 301 if (new) { 302 psMetadataAddStr(translation, PS_LIST_TAIL, name, 0, NULL, new);302 psMetadataAddStr(translation, PS_LIST_TAIL, item->name, 0, NULL, new); 303 303 } 304 304 } … … 306 306 psFree(concepts); 307 307 308 concepts = pmConcepts List(PM_FPA_LEVEL_CELL);309 iter = ps ListIteratorAlloc(concepts, PS_LIST_HEAD, false);310 while (( name = psListGetAndIncrement(iter))) {311 const char *new = skycellConceptName( name, skycellConceptsCell, system); // Name for skycell308 concepts = pmConceptsSpecs(PM_FPA_LEVEL_CELL); 309 iter = psMetadataIteratorAlloc(concepts, PS_LIST_HEAD, false); 310 while ((item = psMetadataGetAndIncrement(iter))) { 311 const char *new = skycellConceptName(item->name, skycellConceptsCell, system); // Name for skycell 312 312 if (new) { 313 psMetadataAddStr(translation, PS_LIST_TAIL, name, 0, NULL, new);313 psMetadataAddStr(translation, PS_LIST_TAIL, item->name, 0, NULL, new); 314 314 } 315 315 }
Note:
See TracChangeset
for help on using the changeset viewer.
