IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 11, 2010, 5:08:29 PM (16 years ago)
Author:
eugene
Message:

updates to support psphotStack

Location:
trunk/ppSim
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSim

  • trunk/ppSim/src/ppSimInsertStars.c

    r27533 r27657  
    145145    fclose (outfile);
    146146
    147     // NOTE: the pmFPAfile "PPSIM.OUTPUT" points at these sources
    148     psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSPHOT.SOURCES", PS_DATA_ARRAY, "fake sources", sources);
    149     psFree(sources);
     147    pmDetections *detections = pmDetectionsAlloc();
     148    detections->allSources = sources;
     149
     150    // save detections on the readout->analysis
     151    if (!psMetadataAddPtr (readout->analysis, PS_LIST_TAIL, "PSPHOT.DETECTIONS", PS_META_REPLACE | PS_DATA_UNKNOWN, "fake sources", detections)) {
     152        psError (PSPHOT_ERR_CONFIG, false, "problem saving detections on readout");
     153        return false;
     154    }
     155    psFree(detections);
    150156
    151157    // XXX many leaks in here, i think
Note: See TracChangeset for help on using the changeset viewer.