Changeset 27647
- Timestamp:
- Apr 9, 2010, 4:39:44 PM (16 years ago)
- Location:
- branches/eam_branches/stackphot.20100406/ppSim/src
- Files:
-
- 3 edited
-
ppSimInsertGalaxies.c (modified) (1 diff)
-
ppSimInsertStars.c (modified) (1 diff)
-
ppSimUtils.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/stackphot.20100406/ppSim/src/ppSimInsertGalaxies.c
r27630 r27647 74 74 int dY = PM_CELL_TO_CHIP (0.0, y0Cell, yParityCell, binning); 75 75 76 pmDetections *detections = psMetadataLookupPtr ( readout->analysis, "PSPHOT.DETECTIONS", 0);76 pmDetections *detections = psMetadataLookupPtr (&mdok, readout->analysis, "PSPHOT.DETECTIONS"); 77 77 if (!detections) { 78 78 detections = pmDetectionsAlloc(); 79 detection ->allSources = psArrayAllocEmpty (galaxies->n);79 detections->allSources = psArrayAllocEmpty (galaxies->n); 80 80 psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSPHOT.DETECTIONS", PS_DATA_ARRAY | PS_META_REPLACE, "psphot detections", detections); 81 81 } else { 82 82 psMemIncrRefCounter (detections); 83 83 } 84 psArray *sources = sources = detection ->allSources;84 psArray *sources = sources = detections->allSources; 85 85 86 86 // add sources to the readout image & weight -
branches/eam_branches/stackphot.20100406/ppSim/src/ppSimInsertStars.c
r27630 r27647 146 146 147 147 pmDetections *detections = pmDetectionsAlloc(); 148 detection ->allSources = sources;148 detections->allSources = sources; 149 149 150 150 // save detections on the readout->analysis -
branches/eam_branches/stackphot.20100406/ppSim/src/ppSimUtils.c
r27630 r27647 270 270 psArray *ppSimSelectSources (pmConfig *config, const pmFPAview *view, const char *filename) { 271 271 272 bool status; 273 272 274 pmReadout *readout = pmFPAfileThisReadout (config->files, view, filename); 273 275 PS_ASSERT_PTR_NON_NULL (readout, NULL);
Note:
See TracChangeset
for help on using the changeset viewer.
