Changeset 5772 for trunk/psphot/src/psphot.c
- Timestamp:
- Dec 13, 2005, 6:43:44 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphot.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphot.c
r5756 r5772 43 43 psfClump = pmSourcePSFClump (sources, config); 44 44 45 // group into STAR, COSMIC, GALAXY, SATURATED 45 // group into STAR, COSMIC, GALAXY, SATURATED, etc. 46 46 pmSourceRoughClass (sources, config, psfClump); 47 48 // optional dump of all rough source data 49 char *output = psMetadataLookupPtr (&status, config, "MOMENTS_OUTPUT_FILE"); 50 if (status && (output != NULL) && (output[0])) 51 { 52 pmMomentsWriteText (sources, output); 53 psFree (output); 54 } 47 55 if (!strcasecmp (breakPt, "CLASS")) exit (0); 48 56 57 // mark blended peaks PS_SOURCE_BLEND 49 58 psphotBasicDeblend (sources, config, sky); 50 59 if (!strcasecmp (breakPt, "DEBLEND")) exit (0); … … 57 66 if (!strcasecmp (breakPt, "PSFFIT")) exit (0); 58 67 68 // XXX add this as conditional output 69 psphotSamplePSFs (psf, imdata->image); 70 59 71 int FITMODE = psMetadataLookupS32 (&status, config, "FIT_MODE"); 60 72 if (!status) FITMODE = 2; 61 73 62 74 switch (FITMODE) { 63 case -2:75 case 0: 64 76 psphotEnsemblePSF (imdata, config, sources, psf, sky); 65 psphotReapplyPSF (imdata, config, sources, psf, sky); 66 break; 67 68 case -1: 69 psphotEnsemblePSF (imdata, config, sources, psf, sky); 70 break; 71 72 case 0: 73 psphotFixedPSF (imdata, config, sources, psf, sky); 77 sources = psArraySort (sources, psphotSortBySN); 78 psphotFullFit (imdata, config, sources, psf, sky); 79 // psphotReplaceUnfit (sources); 74 80 break; 75 81 76 82 case 1: 77 // test PSF on all except SATURATE and DEFECT (artifacts)83 // fit extended objects with galaxy models 78 84 psphotApplyPSF (imdata, config, sources, psf, sky); 85 psphotFitGalaxies (imdata, config, sources, sky); 79 86 break; 80 87 … … 82 89 // fit extended objects with galaxy models 83 90 psphotApplyPSF (imdata, config, sources, psf, sky); 84 psphotFitGalaxies (imdata, config, sources, sky);85 91 break; 86 92
Note:
See TracChangeset
for help on using the changeset viewer.
