Changeset 4949 for trunk/psphot/src/psphotChoosePSF.c
- Timestamp:
- Sep 5, 2005, 8:44:00 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotChoosePSF.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotChoosePSF.c
r4946 r4949 17 17 // select the candidate PSF stars (pointers to original sources) 18 18 for (int i = 0; i < sources->n; i++) { 19 p sSource *source = sources->data[i];19 pmSource *source = sources->data[i]; 20 20 if (source->type != PS_SOURCE_PSFSTAR) continue; 21 21 psArrayAdd (stars, 200, source); … … 35 35 36 36 // set up an array to store the test results 37 psArray *tests = psArrayAlloc (list->size); 38 // XXX EAM : new value : psArray *tests = psArrayAlloc (list->n); 37 psArray *tests = psArrayAlloc (list->n); 39 38 40 39 // test each model option listed in config … … 68 67 // keep only the selected test: 69 68 test = tests->data[bestN]; 70 modelName = p sModelGetType (test->modelType);69 modelName = pmModelGetType (test->modelType); 71 70 psLogMsg ("psphot.pspsf", 3, "selected psf model %s, ApResid: %f +/- %f\n", modelName, test->ApResid, test->dApResid); 72 71 … … 77 76 // set source->model based on best psf model fit 78 77 for (int i = 0; i < test->sources->n; i++) { 79 p sSource *source = test->sources->data[i];78 pmSource *source = test->sources->data[i]; 80 79 // drop masked sources from PSFSTAR list 81 80 if (test->mask->data.U8[i]) {
Note:
See TracChangeset
for help on using the changeset viewer.
