IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 16, 2007, 10:57:18 AM (19 years ago)
Author:
Paul Price
Message:

Add kernel description to header.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSub/src/ppSubReadout.c

    r14526 r14536  
    4444    pmCell *outCell = pmFPAfileThisCell(config->files, view, "PPSUB.OUTPUT"); // Output cell
    4545    pmReadout *outRO = pmReadoutAlloc(outCell); // Output readout
     46    pmFPA *outFPA = outCell->parent->parent; // Output FPA
     47    pmHDU *outHDU = outFPA->hdu; // Output HDU
     48    if (!outHDU->header) {
     49        outHDU->header = psMetadataAlloc();
     50    }
    4651
    4752    psImage *input = inRO->image;       // Input image
     
    287292    }
    288293
     294    // Add kernel descrption to header
     295    psMetadataAddStr(outHDU->header, PS_LIST_TAIL, "PPSUB.KERNEL", 0,
     296                     "Subtraction kernel", kernels->description);
    289297    psFree(kernels);
    290298
     
    341349    pmFPA *refFPA = refRO->parent->parent->parent; // Reference FPA
    342350    pmHDU *refHDU = refFPA->hdu;        // Reference HDU
    343     pmFPA *outFPA = outCell->parent->parent; // Output FPA
    344     pmHDU *outHDU = outFPA->hdu; // Output HDU
    345351    if (!outHDU || !refHDU) {
    346352        psWarning("Unable to find HDU at FPA level to copy astrometry.");
     
    350356            psFree(outRO);
    351357            return false;
    352         }
    353         if (!outHDU->header) {
    354             outHDU->header = psMetadataAlloc();
    355358        }
    356359        if (!pmAstromWriteWCS(outHDU->header, outFPA, outCell->parent, WCS_TOLERANCE)) {
Note: See TracChangeset for help on using the changeset viewer.