- Timestamp:
- Aug 23, 2007, 1:24:04 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20070817/ppSim/src/ppSimInsertSources.c
r14614 r14642 8 8 assert (readout); 9 9 10 // XXX is this needed? 11 // pmFPAfile *simSources = psMetadataLookupPtr(NULL, config->files, "PPSIM.SOURCES"); // Output sources 12 10 13 pmCell *cell = readout->parent; 11 14 pmChip *chip = cell->parent; … … 50 53 int dY = PM_CELL_TO_CHIP (0.0, y0Cell, yParityCell, binning); 51 54 55 psArray *sources = psArrayAllocEmpty (stars->n); 56 52 57 // add sources to the readout image & weight 53 58 for (long i = 0; i < stars->n; i++) { … … 87 92 // insert the source flux in the image 88 93 pmSourceAddWithOffset (source, PM_MODEL_OP_FULL, 0xff, dX, dY); 94 psArrayAdd (sources, 100,source); 89 95 } 90 96 91 // XXX add the source array to the readout analysis 97 // NOTE: readout must be part of the pmFPAfile named "PPSIM.OUTPUT" 98 psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSPHOT.SOURCES", PS_DATA_ARRAY, "psphot sources", sources); 92 99 100 // XXX many leaks in here, i think 93 101 return true; 94 102 }
Note:
See TracChangeset
for help on using the changeset viewer.
