Changeset 5048 for trunk/psphot/src/psphotMarkPSF.c
- Timestamp:
- Sep 13, 2005, 3:35:20 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotMarkPSF.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotMarkPSF.c
r4949 r5048 18 18 // we also reject objects with S/N too low or ChiSquare to high 19 19 20 // any object which meets the criterion is marked as P S_SOURCE_BRIGHTSTAR20 // any object which meets the criterion is marked as PM_SOURCE_BRIGHTSTAR 21 21 22 22 // floor for DS value … … 35 35 // remember: fit does not use saturated pixels (masked) 36 36 if (source->modelPSF->params->data.F32[1] >= SATURATE) { 37 if (source->type == P S_SOURCE_PSFSTAR) {37 if (source->type == PM_SOURCE_PSFSTAR) { 38 38 psLogMsg ("psphot", 3, "PSFSTAR marked SATSTAR\n"); 39 39 } 40 source->type = P S_SOURCE_SATSTAR;40 source->type = PM_SOURCE_SATSTAR; 41 41 return (true); 42 42 } 43 if (source->type == P S_SOURCE_SATSTAR) {43 if (source->type == PM_SOURCE_SATSTAR) { 44 44 psLogMsg ("psphot", 4, "SATSTAR marked GOODSTAR (fitted peak below saturation)\n"); 45 source->type = P S_SOURCE_GOODSTAR;45 source->type = PM_SOURCE_GOODSTAR; 46 46 } 47 47 … … 57 57 nSy = dSY / hypot (MIN_DS, 1 / (SY * SN)); 58 58 59 // assign P S_SOURCE_GOODSTAR to bright objects within PSF region of dparams[]59 // assign PM_SOURCE_GOODSTAR to bright objects within PSF region of dparams[] 60 60 keep = TRUE; 61 61 keep &= (fabs(nSx) < shapeNsigma); … … 64 64 keep &= (Chi < maxChi); 65 65 if (keep) { 66 if (source->type == P S_SOURCE_PSFSTAR) return (true);67 source->type = P S_SOURCE_GOODSTAR;66 if (source->type == PM_SOURCE_PSFSTAR) return (true); 67 source->type = PM_SOURCE_GOODSTAR; 68 68 return (true); 69 69 } 70 70 71 if (source->type == P S_SOURCE_PSFSTAR) {71 if (source->type == PM_SOURCE_PSFSTAR) { 72 72 psLogMsg ("psphot", 3, "PSFSTAR demoted based on fit quality\n"); 73 73 } … … 75 75 // object appears to be small, suspected defect 76 76 if ((nSx <= -shapeNsigma) || (nSy <= -shapeNsigma)) { 77 source->type = P S_SOURCE_DEFECT;77 source->type = PM_SOURCE_DEFECT; 78 78 return (false); 79 79 } … … 81 81 // object appears to be large, suspected galaxy 82 82 if ((nSx >= shapeNsigma) || (nSy >= shapeNsigma)) { 83 source->type = P S_SOURCE_GALAXY;83 source->type = PM_SOURCE_GALAXY; 84 84 return (false); 85 85 } … … 87 87 // object appears to be extremely faint: what is this? 88 88 if (SN < minSN) { 89 source->type = P S_SOURCE_FAINTSTAR;89 source->type = PM_SOURCE_FAINTSTAR; 90 90 return (false); 91 91 } 92 92 93 93 // these are pooly fitted, probable stars near other stars? 94 source->type = P S_SOURCE_POOR_FIT_PSF;94 source->type = PM_SOURCE_POOR_FIT_PSF; 95 95 return (false); 96 96 }
Note:
See TracChangeset
for help on using the changeset viewer.
