Changeset 17851
- Timestamp:
- May 29, 2008, 3:26:56 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080511/ppSim/src/ppSimPhotomReadout.c
r17818 r17851 23 23 PS_ASSERT_PTR_NON_NULL (readout, false); 24 24 25 pmReadout *realSourceReadout = pmFPAfileThisReadout (config->files, view, "PPSIM.REAL.SOURCES"); 26 PS_ASSERT_PTR_NON_NULL (realSourceReadout, false); 27 25 28 // Generate the mask and weight images, including the user-defined analysis region of interest 26 29 psphotSetMaskAndWeight (config, readout, recipe); … … 33 36 // load the source lists 34 37 // PPSIM.REAL.SOURCES carries the pmSource objects (from psphot analysis or loaded externally) 35 psArray *realSources = psMetadataLookupPtr (NULL, rea dout->analysis, "PPSIM.REAL.SOURCES");38 psArray *realSources = psMetadataLookupPtr (NULL, realSourceReadout->analysis, "PSPHOT.SOURCES"); 36 39 psArray *forceSources = ppSimLoadForceSources (config, view); 37 40 38 41 // XXX make a copy of the fake-source parameters so these can be saved independently 39 42 // from the measured fake-source parameters 40 psArray *injectedSources = psMetadataLookupPtr (NULL, readout->analysis, "P PSIM.SOURCES");43 psArray *injectedSources = psMetadataLookupPtr (NULL, readout->analysis, "PSPHOT.SOURCES"); 41 44 psArray *fakeSources = psArrayAlloc (injectedSources->n); 42 45 for (int i = 0; i < injectedSources->n; i++) { … … 115 118 116 119 // 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); 119 123 psFree (forceSources); 120 124 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
