Changeset 22687 for trunk/psModules/src/camera/pmFPACopy.c
- Timestamp:
- Feb 26, 2009, 11:47:00 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPACopy.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPACopy.c
r21510 r22687 452 452 // Update the concepts 453 453 psMetadataItem *chipName = psMemIncrRefCounter(psMetadataLookup(target->concepts, "CHIP.NAME")); 454 p sMetadataCopy(target->concepts, source->concepts);454 pmConceptsCopyChip(target, source, false); 455 455 psMetadataAddItem(target->concepts, chipName, PS_LIST_TAIL, PS_META_REPLACE); 456 456 psFree(chipName); 457 p sMetadataCopy(target->parent->concepts, source->parent->concepts);457 pmConceptsCopyFPA(target->parent, source->parent, false, false); 458 458 459 459 // Update the astrometric parameters … … 467 467 468 468 if (targetFPA && sourceFPA) { 469 if (targetFPA->toSky) {470 psAssert (targetFPA->toSky == sourceFPA->toSky, "chips within FPA have inconsistent astrometry references");471 } else {472 targetFPA->toSky = psMemIncrRefCounter (sourceFPA->toSky);473 }474 if (targetFPA->toTPA) {475 psAssert (targetFPA->toTPA == sourceFPA->toTPA, "chips within FPA have inconsistent astrometry references");476 } else {477 targetFPA->toTPA = psMemIncrRefCounter (sourceFPA->toTPA);478 }479 if (targetFPA->fromTPA) {480 psAssert (targetFPA->fromTPA == sourceFPA->fromTPA, "chips within FPA have inconsistent astrometry references");481 } else {482 targetFPA->fromTPA = psMemIncrRefCounter (sourceFPA->fromTPA);483 }469 if (targetFPA->toSky) { 470 psAssert (targetFPA->toSky == sourceFPA->toSky, "chips within FPA have inconsistent astrometry references"); 471 } else { 472 targetFPA->toSky = psMemIncrRefCounter (sourceFPA->toSky); 473 } 474 if (targetFPA->toTPA) { 475 psAssert (targetFPA->toTPA == sourceFPA->toTPA, "chips within FPA have inconsistent astrometry references"); 476 } else { 477 targetFPA->toTPA = psMemIncrRefCounter (sourceFPA->toTPA); 478 } 479 if (targetFPA->fromTPA) { 480 psAssert (targetFPA->fromTPA == sourceFPA->fromTPA, "chips within FPA have inconsistent astrometry references"); 481 } else { 482 targetFPA->fromTPA = psMemIncrRefCounter (sourceFPA->fromTPA); 483 } 484 484 } 485 485 … … 525 525 526 526 // Update the concepts 527 p sMetadataCopy(targetChip->concepts, sourceChip->concepts);527 pmConceptsCopyChip(targetChip, sourceChip, false); 528 528 529 529 // update the attributes … … 572 572 573 573 // Update the concepts 574 p sMetadataCopy(target->concepts, source->concepts);574 pmConceptsCopyFPA(target, source, false, false); 575 575 576 576 return status;
Note:
See TracChangeset
for help on using the changeset viewer.
