Changeset 5643 for trunk/psphot/src/psphot.c
- Timestamp:
- Nov 30, 2005, 2:32:16 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphot.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphot.c
r5628 r5643 49 49 if (!strcasecmp (breakPt, "PSFFIT")) exit (0); 50 50 51 // test PSF on all except SATURATE and DEFECT (artifacts) 52 psphotApplyPSF (imdata, config, sources, psf, sky); 53 if (!strcasecmp (breakPt, "PSFSUB")) exit (0); 51 int FITMODE = psMetadataLookupS32 (&status, config, "FIT_MODE"); 52 if (!status) FITMODE = 0; 54 53 55 // fit extended objects with galaxy models 56 psphotFitGalaxies (imdata, config, sources, sky); 57 if (!strcasecmp (breakPt, "GALSUB")) exit (0); 54 switch (FITMODE) { 55 case 0: 56 psphotFixedPSF (imdata, config, sources, psf, sky); 57 break; 58 59 case 1: 60 // test PSF on all except SATURATE and DEFECT (artifacts) 61 psphotApplyPSF (imdata, config, sources, psf, sky); 62 break; 63 64 case 2: 65 // fit extended objects with galaxy models 66 psphotApplyPSF (imdata, config, sources, psf, sky); 67 psphotFitGalaxies (imdata, config, sources, sky); 68 break; 69 70 case 3: 71 // fit extended objects with galaxy models 72 psphotFixedPSF (imdata, config, sources, psf, sky); 73 psphotFitGalaxies (imdata, config, sources, sky); 74 break; 75 } 58 76 59 77 // write out data in appropriate format
Note:
See TracChangeset
for help on using the changeset viewer.
