- Timestamp:
- Mar 5, 2009, 11:13:29 AM (17 years ago)
- Location:
- branches/cnb_branches/cnb_branch_20090215
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
psModules/src/config/pmConfigCamera.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/cnb_branches/cnb_branch_20090215
-
branches/cnb_branches/cnb_branch_20090215/psModules/src/config/pmConfigCamera.c
r20048 r23197 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 } 294 294 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 301 300 if (new) { 302 psMetadataAddStr(translation, PS_LIST_TAIL, name, 0, NULL, new);301 psMetadataAddStr(translation, PS_LIST_TAIL, item->name, 0, NULL, new); 303 302 } 304 303 } 305 304 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 312 310 if (new) { 313 psMetadataAddStr(translation, PS_LIST_TAIL, name, 0, NULL, new);311 psMetadataAddStr(translation, PS_LIST_TAIL, item->name, 0, NULL, new); 314 312 } 315 313 } 316 314 psFree(iter); 317 psFree(concepts);318 315 319 316 psMetadataAddMetadata(format, PS_LIST_TAIL, "TRANSLATION", 0, "How to translate the FITS headers",
Note:
See TracChangeset
for help on using the changeset viewer.
