IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 5, 2009, 11:13:29 AM (17 years ago)
Author:
beaumont
Message:

Finished ppStack visualization. Unified the way in which visualizations are invoked, plotting windows are closed, etc

Location:
branches/cnb_branches/cnb_branch_20090215
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/cnb_branches/cnb_branch_20090215

  • branches/cnb_branches/cnb_branch_20090215/psModules/src/camera/pmFPACopy.c

    r21536 r23197  
    1313#include "pmFPAUtils.h"
    1414#include "pmHDUUtils.h"
     15#include "pmConceptsCopy.h"
    1516#include "pmFPACopy.h"
    1617
     
    452453    // Update the concepts
    453454    psMetadataItem *chipName = psMemIncrRefCounter(psMetadataLookup(target->concepts, "CHIP.NAME"));
    454     psMetadataCopy(target->concepts, source->concepts);
     455    pmConceptsCopyChip(target, source, false);
    455456    psMetadataAddItem(target->concepts, chipName, PS_LIST_TAIL, PS_META_REPLACE);
    456457    psFree(chipName);
    457     psMetadataCopy(target->parent->concepts, source->parent->concepts);
     458    pmConceptsCopyFPA(target->parent, source->parent, false, false);
    458459
    459460    // Update the astrometric parameters
     
    467468
    468469    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        }
    484485    }
    485486
     
    525526
    526527    // Update the concepts
    527     psMetadataCopy(targetChip->concepts, sourceChip->concepts);
     528    pmConceptsCopyChip(targetChip, sourceChip, false);
    528529
    529530    // update the attributes
     
    572573
    573574    // Update the concepts
    574     psMetadataCopy(target->concepts, source->concepts);
     575    pmConceptsCopyFPA(target, source, false, false);
    575576
    576577    return status;
Note: See TracChangeset for help on using the changeset viewer.