IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17851


Ignore:
Timestamp:
May 29, 2008, 3:26:56 AM (18 years ago)
Author:
eugene
Message:

loaded, fake, and forced sources are stored on different pmFPAfile containers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080511/ppSim/src/ppSimPhotomReadout.c

    r17818 r17851  
    2323    PS_ASSERT_PTR_NON_NULL (readout, false);
    2424
     25    pmReadout *realSourceReadout = pmFPAfileThisReadout (config->files, view, "PPSIM.REAL.SOURCES");
     26    PS_ASSERT_PTR_NON_NULL (realSourceReadout, false);
     27
    2528    // Generate the mask and weight images, including the user-defined analysis region of interest
    2629    psphotSetMaskAndWeight (config, readout, recipe);
     
    3336    // load the source lists
    3437    // PPSIM.REAL.SOURCES carries the pmSource objects (from psphot analysis or loaded externally)
    35     psArray *realSources = psMetadataLookupPtr (NULL, readout->analysis, "PPSIM.REAL.SOURCES");
     38    psArray *realSources = psMetadataLookupPtr (NULL, realSourceReadout->analysis, "PSPHOT.SOURCES");
    3639    psArray *forceSources = ppSimLoadForceSources (config, view);
    3740
    3841    // XXX make a copy of the fake-source parameters so these can be saved independently
    3942    // from the measured fake-source parameters
    40     psArray *injectedSources = psMetadataLookupPtr (NULL, readout->analysis, "PPSIM.SOURCES");
     43    psArray *injectedSources = psMetadataLookupPtr (NULL, readout->analysis, "PSPHOT.SOURCES");
    4144    psArray *fakeSources = psArrayAlloc (injectedSources->n);
    4245    for (int i = 0; i < injectedSources->n; i++) {
     
    115118
    116119    // add forceSources to the readout (real and fake already there)
    117     psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PPSIM.FAKE.SOURCES", PS_DATA_ARRAY, "fake photometry ", fakeSources);
    118     psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PPSIM.FORCE.SOURCES", PS_DATA_ARRAY, "forced photometry ", forceSources);
     120    // these are outputs: we need to generate the fpa structure
     121    // psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PPSIM.FAKE.SOURCES", PS_DATA_ARRAY, "fake photometry ", fakeSources);
     122    // psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PPSIM.FORCE.SOURCES", PS_DATA_ARRAY, "forced photometry ", forceSources);
    119123    psFree (forceSources);
    120124    return true;
Note: See TracChangeset for help on using the changeset viewer.