Changeset 5048 for trunk/psphot/src/psphotFitGalaxies.c
- Timestamp:
- Sep 13, 2005, 3:35:20 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotFitGalaxies.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotFitGalaxies.c
r4977 r5048 31 31 // sources which should not be fitted 32 32 // skip all valid stars 33 if (source->type == P S_SOURCE_PSFSTAR) continue;34 if (source->type == P S_SOURCE_SATSTAR) continue;35 if (source->type == P S_SOURCE_GOODSTAR) continue;33 if (source->type == PM_SOURCE_PSFSTAR) continue; 34 if (source->type == PM_SOURCE_SATSTAR) continue; 35 if (source->type == PM_SOURCE_GOODSTAR) continue; 36 36 37 37 // skip all likely defects 38 if (source->type == P S_SOURCE_DEFECT) continue;39 if (source->type == P S_SOURCE_SATURATED) continue;38 if (source->type == PM_SOURCE_DEFECT) continue; 39 if (source->type == PM_SOURCE_SATURATED) continue; 40 40 41 41 // skip poorly fitted stars 42 if (source->type == P S_SOURCE_FAINTSTAR) continue;43 if (source->type == P S_SOURCE_POOR_FIT_PSF) continue;42 if (source->type == PM_SOURCE_FAINTSTAR) continue; 43 if (source->type == PM_SOURCE_POOR_FIT_PSF) continue; 44 44 45 45 // XXX EAM when do we pick these up again? 46 46 if (source->moments->SN < GAL_MIN_SN) { 47 source->type = P S_SOURCE_FAINT_GALAXY; // better choice?47 source->type = PM_SOURCE_FAINT_GALAXY; // better choice? 48 48 continue; 49 49 } 50 50 51 51 // recalculate the source moments using the larger galaxy moments radius 52 // XXX EAM : 0.5.0 code used _EAM version 53 // status = pmSourceMoments (source, GAL_MOMENTS_RAD); 54 status = pmSourceMoments_EAM (source, GAL_MOMENTS_RAD); 52 status = pmSourceMoments (source, GAL_MOMENTS_RAD); 55 53 if (!status) { 56 source->type = P S_SOURCE_DROP_GALAXY; // better choice?54 source->type = PM_SOURCE_DROP_GALAXY; // better choice? 57 55 continue; 58 56 } … … 84 82 // if the fit fails, we need to change the classification 85 83 psLogMsg ("psphot", 3, "GAL fit failed for %f, %f (%d iterations, %f radius)\n", x, y, model->nIter, model->radius); 86 source->type = P S_SOURCE_FAIL_FIT_GAL; // better choice?84 source->type = PM_SOURCE_FAIL_FIT_GAL; // better choice? 87 85 source->modelFLT = model; 88 86 Nfail ++; … … 95 93 // if the fit fails, we need to change the classification 96 94 psLogMsg ("psphot", 3, "GAL fit poor for %f, %f (%d iterations, %f radius)\n", x, y, model->nIter, model->radius); 97 source->type = P S_SOURCE_POOR_FIT_GAL; // better choice?95 source->type = PM_SOURCE_POOR_FIT_GAL; // better choice? 98 96 source->modelFLT = model; 99 97 Nfail ++; … … 102 100 103 101 // accept the model 104 source->type = P S_SOURCE_GALAXY;102 source->type = PM_SOURCE_GALAXY; 105 103 source->modelFLT = model; 106 104 Niter += model[0].nIter;
Note:
See TracChangeset
for help on using the changeset viewer.
