Changeset 17958 for branches/eam_branch_20080511/ppSim/src/ppSimUtils.c
- Timestamp:
- Jun 5, 2008, 5:16:44 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080511/ppSim/src/ppSimUtils.c
r17901 r17958 274 274 return NAN; 275 275 } 276 277 psArray *ppSimSelectSources (pmConfig *config, const pmFPAview *view, const char *filename) { 278 279 pmReadout *readout = pmFPAfileThisReadout (config->files, view, filename); 280 PS_ASSERT_PTR_NON_NULL (readout, NULL); 281 282 psArray *sources = psMetadataLookupPtr (NULL, readout->analysis, "PSPHOT.SOURCES"); 283 return sources; 284 } 285 286 bool ppSimDefinePixels (psArray *sources, pmReadout *readout, psMetadata *recipe) { 287 288 bool status; 289 290 float OUTER = psMetadataLookupF32 (&status, recipe, "SKY_OUTER_RADIUS"); 291 if (!status) return NULL; 292 293 for (int i = 0; i < sources->n; i++) { 294 pmSource *source = sources->data[i]; 295 296 // allocate image, weight, mask arrays for each peak (square of radius OUTER) 297 pmSourceDefinePixels (source, readout, source->peak->x, source->peak->y, OUTER); 298 } 299 return true; 300 } 301
Note:
See TracChangeset
for help on using the changeset viewer.
