IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 23374


Ignore:
Timestamp:
Mar 17, 2009, 4:37:29 PM (17 years ago)
Author:
Paul Price
Message:

Put top-level HDU (should be PHU) into header, so that output can be
recognised as coming from the appropriate camera.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmSubtractionIO.c

    r23242 r23374  
    44
    55#include "pmHDU.h"
     6#include "pmHDUUtils.h"
    67#include "pmFPA.h"
    78#include "pmFPAview.h"
     
    143144    psMetadata *header = psMetadataAlloc(); // Header for FITS file
    144145
     146    pmCell *cell = ro->parent;          // Cell of interest
     147    if (cell) {
     148        pmChip *chip = cell->parent;    // Chip of interest
     149        pmFPA *fpa = chip->parent;      // FPA of interest
     150        pmHDU *hdu = pmHDUGetHighest(fpa, chip, cell); // HDU for readout
     151        if (hdu) {
     152            header = psMetadataCopy(header, hdu->header);
     153        }
     154    }
     155
    145156    // CVS tags, used to identify the version of this file (in case incompatibilities are introduced)
    146157    psString cvsFile = psStringCopy("$RCSfile: pmSubtractionIO.c,v $");
Note: See TracChangeset for help on using the changeset viewer.