Changeset 13900 for trunk/psphot/src/psphotRoughClass.c
- Timestamp:
- Jun 19, 2007, 4:40:44 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotRoughClass.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotRoughClass.c
r13374 r13900 2 2 3 3 // 2006.02.02 : no leaks 4 bool psphotRoughClass (psArray *sources, psMetadata *recipe, const bool findPsfClump ) {4 bool psphotRoughClass (psArray *sources, psMetadata *recipe, const bool findPsfClump, psMaskType maskSat) { 5 5 6 6 static pmPSFClump psfClump; … … 10 10 11 11 if (findPsfClump) { 12 psfClump = pmSourcePSFClump (sources, recipe);12 psfClump = pmSourcePSFClump (sources, recipe); 13 13 } else if (!havePsfClump) { 14 psError(PSPHOT_ERR_PROG, false, "You must find the PSF clump before reusing it");14 psError(PSPHOT_ERR_PROG, false, "You must find the PSF clump before reusing it"); 15 15 } else { 16 ;16 ; 17 17 } 18 19 havePsfClump = false; // we don't know if it's valid18 19 havePsfClump = false; // we don't know if it's valid 20 20 if (psfClump.X < 0) { 21 psError(PSPHOT_ERR_PROG, false, "programming error calling pmSourcePSFClump");22 return false;21 psError(PSPHOT_ERR_PROG, false, "programming error calling pmSourcePSFClump"); 22 return false; 23 23 } 24 24 if (!psfClump.X || !psfClump.Y) { 25 psError(PSPHOT_ERR_DATA, true, "Failed to find a valid PSF clump");26 return false;25 psError(PSPHOT_ERR_DATA, true, "Failed to find a valid PSF clump"); 26 return false; 27 27 } 28 28 psLogMsg ("psphot", 3, "psf clump X, Y: %f, %f\n", psfClump.X, psfClump.Y); … … 30 30 31 31 // group into STAR, COSMIC, EXTENDED, SATURATED, etc. 32 if (!pmSourceRoughClass (sources, recipe, psfClump )) {33 psError(PSPHOT_ERR_PROG, false, "programming error calling pmSourceRoughClass");34 return false;32 if (!pmSourceRoughClass (sources, recipe, psfClump, maskSat)) { 33 psError(PSPHOT_ERR_PROG, false, "programming error calling pmSourceRoughClass"); 34 return false; 35 35 } 36 36 … … 40 40 psLogMsg ("psphot.roughclass", PS_LOG_INFO, "rough classification: %f sec\n", psTimerMark ("psphot")); 41 41 42 havePsfClump = true; // we have set psfClump43 42 havePsfClump = true; // we have set psfClump 43 44 44 return true; 45 45 }
Note:
See TracChangeset
for help on using the changeset viewer.
