- 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/camera/pmFPACopy.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/cnb_branches/cnb_branch_20090215
-
branches/cnb_branches/cnb_branch_20090215/psModules/src/camera/pmFPACopy.c
r21536 r23197 13 13 #include "pmFPAUtils.h" 14 14 #include "pmHDUUtils.h" 15 #include "pmConceptsCopy.h" 15 16 #include "pmFPACopy.h" 16 17 … … 452 453 // Update the concepts 453 454 psMetadataItem *chipName = psMemIncrRefCounter(psMetadataLookup(target->concepts, "CHIP.NAME")); 454 p sMetadataCopy(target->concepts, source->concepts);455 pmConceptsCopyChip(target, source, false); 455 456 psMetadataAddItem(target->concepts, chipName, PS_LIST_TAIL, PS_META_REPLACE); 456 457 psFree(chipName); 457 p sMetadataCopy(target->parent->concepts, source->parent->concepts);458 pmConceptsCopyFPA(target->parent, source->parent, false, false); 458 459 459 460 // Update the astrometric parameters … … 467 468 468 469 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 }470 if (targetFPA->toSky) { 471 psAssert (targetFPA->toSky == sourceFPA->toSky, "chips within FPA have inconsistent astrometry references"); 472 } else { 473 targetFPA->toSky = psMemIncrRefCounter (sourceFPA->toSky); 474 } 475 if (targetFPA->toTPA) { 476 psAssert (targetFPA->toTPA == sourceFPA->toTPA, "chips within FPA have inconsistent astrometry references"); 477 } else { 478 targetFPA->toTPA = psMemIncrRefCounter (sourceFPA->toTPA); 479 } 480 if (targetFPA->fromTPA) { 481 psAssert (targetFPA->fromTPA == sourceFPA->fromTPA, "chips within FPA have inconsistent astrometry references"); 482 } else { 483 targetFPA->fromTPA = psMemIncrRefCounter (sourceFPA->fromTPA); 484 } 484 485 } 485 486 … … 525 526 526 527 // Update the concepts 527 p sMetadataCopy(targetChip->concepts, sourceChip->concepts);528 pmConceptsCopyChip(targetChip, sourceChip, false); 528 529 529 530 // update the attributes … … 572 573 573 574 // Update the concepts 574 p sMetadataCopy(target->concepts, source->concepts);575 pmConceptsCopyFPA(target, source, false, false); 575 576 576 577 return status;
Note:
See TracChangeset
for help on using the changeset viewer.
