IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25688


Ignore:
Timestamp:
Sep 30, 2009, 12:57:18 PM (17 years ago)
Author:
Paul Price
Message:

Fixing concept copy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/src/ppstampMakeStamp.c

    r25450 r25688  
    6161    // since some of the keywords might be duplicated we may not want to copy both
    6262
    63     // copy the fpa concepts
    64     outChip->parent->concepts = psMetadataCopy(outChip->parent->concepts, inChip->parent->concepts);
    65 
    6663    pmHDU *inHDU  = pmHDUFromChip(inChip);
    6764    pmHDU *outHDU = pmHDUGetHighest(output->fpa, outChip, NULL);
     
    7370    }
    7471
     72    // copy the fpa concepts
     73    pmConceptsCopyFPA(output->fpa, input->fpa, true, true);
     74    // Need to fix up the trimsec and biassec to correspond to the output
     75    pmCell *outCell = outChip->cells->data[0]; // The only output cell
     76    psMetadataItem *trimsec = psMetadataLookup(outCell->concepts, "CELL.TRIMSEC");
     77    psFree(trimsec->data.V);
     78    trimsec->data.V = NULL;
     79    psMetadataItem *biassec = psMetadataLookup(outCell->concepts, "CELL.BIASSEC");
     80    psFree(biassec->data.V);
     81    trimsec->data.V = psListAlloc(NULL);
    7582
    7683    // If input had WCS convert it for stamp
Note: See TracChangeset for help on using the changeset viewer.