Changeset 9994
- Timestamp:
- Nov 14, 2006, 4:37:51 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotMagnitudes.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotMagnitudes.c
r9270 r9994 10 10 pmSourceMagnitudesInit (recipe); 11 11 12 bool IGNORE_GROWTH = psMetadataLookupBool (&status, recipe, "IGNORE_GROWTH"); 13 bool INTERPOLATE_AP = psMetadataLookupBool (&status, recipe, "INTERPOLATE_AP"); 14 15 pmSourcePhotometryMode photMode = PM_SOURCE_PHOT_APCORR | PM_SOURCE_PHOT_WEIGHT; 16 if (!IGNORE_GROWTH) photMode |= PM_SOURCE_PHOT_GROWTH; 17 if (INTERPOLATE_AP) photMode |= PM_SOURCE_PHOT_INTERP; 18 12 19 for (int i = 0; i < sources->n; i++) { 13 20 pmSource *source = (pmSource *) sources->data[i]; 14 status = pmSourceMagnitudes (source, psf, PM_SOURCE_PHOT_GROWTH | PM_SOURCE_PHOT_APCORR | PM_SOURCE_PHOT_WEIGHT); 15 // status = pmSourceMagnitudes (source, psf, PM_SOURCE_PHOT_GROWTH | PM_SOURCE_PHOT_APCORR); 21 status = pmSourceMagnitudes (source, psf, photMode); 16 22 if (status) Nap ++; 17 23 }
Note:
See TracChangeset
for help on using the changeset viewer.
