Changeset 21510
- Timestamp:
- Feb 16, 2009, 12:28:03 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPACopy.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPACopy.c
r21363 r21510 457 457 psMetadataCopy(target->parent->concepts, source->parent->concepts); 458 458 459 // Update the astrometric parameters 460 target->toFPA = psMemIncrRefCounter (source->toFPA); 461 target->fromFPA = psMemIncrRefCounter (source->fromFPA); 462 463 // Update the parent fpa astrometry parameters, or check that they match 464 pmFPA *targetFPA = target->parent; 465 pmFPA *sourceFPA = source->parent; 466 // XXX should we require that both of these exist? 467 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 } 484 } 485 459 486 target->data_exists = true; 460 487 return status;
Note:
See TracChangeset
for help on using the changeset viewer.
