IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26816


Ignore:
Timestamp:
Feb 8, 2010, 4:39:46 PM (16 years ago)
Author:
Paul Price
Message:

Ensure photometry information is put in the header.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091201/ppSub/src/ppSubReadoutPhotometry.c

    r26784 r26816  
    122122            return false;
    123123        }
     124
     125        // Ensure photometry information is put in the header
     126        pmHDU *hdu = pmHDUFromReadout(inRO); // HDU for readout
     127        if (hdu) {
     128            psMetadata *photHeader = psMetadataLookupMetadata(NULL, inRO->analysis, "PSPHOT.HEADER"); // Header
     129            hdu->header = psMetadataCopy(hdu->header, photHeader);
     130        }
    124131    }
    125132
     
    135142        pmReadout *photRO = pmFPAviewThisReadout(view, photFile->fpa); // Readout with the sources
    136143        pmDetections *detections = psMetadataLookupPtr(NULL, photRO->analysis, "PSPHOT.DETECTIONS"); // Sources
    137         psArray *sources = detections->allSources;
     144        psArray *sources = detections->allSources;
    138145        FILE *sourceFile = fopen("sources.dat", "w"); // File for sources
    139146        fprintf(sourceFile,
Note: See TracChangeset for help on using the changeset viewer.