Changeset 13006
- Timestamp:
- Apr 24, 2007, 1:43:47 PM (19 years ago)
- Location:
- trunk/psphot/src
- Files:
-
- 8 edited
-
psphotBasicDeblend.c (modified) (1 diff)
-
psphotBlendFit.c (modified) (1 diff)
-
psphotDeblendSatstars.c (modified) (1 diff)
-
psphotEnsemblePSF.c (modified) (1 diff)
-
psphotSortBySN.c (modified) (2 diffs)
-
psphotSourcePlots.c (modified) (1 diff)
-
psphotTestPSF.c (modified) (1 diff)
-
psphotWeightBias.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotBasicDeblend.c
r12792 r13006 19 19 20 20 // we need sources spatially-sorted to find overlaps 21 sources = psArraySort (sources, p sphotSortByY);21 sources = psArraySort (sources, pmSourceSortByY); 22 22 23 23 // source analysis is done in peak order (brightest first) -
trunk/psphot/src/psphotBlendFit.c
r12792 r13006 13 13 14 14 // source analysis is done in S/N order (brightest first) 15 sources = psArraySort (sources, p sphotSortBySN);15 sources = psArraySort (sources, pmSourceSortBySN); 16 16 17 17 // S/N limit to perform full non-linear fits -
trunk/psphot/src/psphotDeblendSatstars.c
r12792 r13006 13 13 14 14 // we need sources spatially-sorted to find overlaps 15 sources = psArraySort (sources, p sphotSortByY);15 sources = psArraySort (sources, pmSourceSortByY); 16 16 17 17 // source analysis is done in peak order (brightest first) -
trunk/psphot/src/psphotEnsemblePSF.c
r12792 r13006 24 24 25 25 // source analysis is done in spatial order 26 refSources = psArraySort (refSources, p sphotSortByY);26 refSources = psArraySort (refSources, pmSourceSortByY); 27 27 28 28 // storage arrays for fitSources and sequence index -
trunk/psphot/src/psphotSortBySN.c
r12792 r13006 1 1 # include "psphotInternal.h" 2 2 3 3 4 // sort by SN (descending) 4 int psphotSortBySN (const void **a, const void **b) 5 int pmPeakSortBySN (const void **a, const void **b) 6 { 7 pmPeak *A = *(pmPeak **)a; 8 pmPeak *B = *(pmPeak **)b; 9 10 psF32 fA = A->SN; 11 psF32 fB = B->SN; 12 if (isnan (fA)) fA = 0; 13 if (isnan (fB)) fB = 0; 14 15 psF32 diff = fA - fB; 16 if (diff > FLT_EPSILON) return (-1); 17 if (diff < FLT_EPSILON) return (+1); 18 return (0); 19 } 20 21 // sort by Y (ascending) 22 int pmPeakSortByY (const void **a, const void **b) 23 { 24 pmPeak *A = *(pmPeak **)a; 25 pmPeak *B = *(pmPeak **)b; 26 27 psF32 fA = A->y; 28 psF32 fB = B->y; 29 30 psF32 diff = fA - fB; 31 if (diff > FLT_EPSILON) return (+1); 32 if (diff < FLT_EPSILON) return (-1); 33 return (0); 34 } 35 36 // sort by SN (descending) 37 int pmSourceSortBySN (const void **a, const void **b) 5 38 { 6 39 pmSource *A = *(pmSource **)a; … … 19 52 20 53 // sort by Y (ascending) 21 int p sphotSortByY (const void **a, const void **b)54 int pmSourceSortByY (const void **a, const void **b) 22 55 { 23 56 pmSource *A = *(pmSource **)a; -
trunk/psphot/src/psphotSourcePlots.c
r12792 r13006 14 14 15 15 // examine PSF sources in S/N order (brightest first) 16 sources = psArraySort (sources, p sphotSortBySN);16 sources = psArraySort (sources, pmSourceSortBySN); 17 17 18 18 // counters to track the size of the image and area used in a row -
trunk/psphot/src/psphotTestPSF.c
r12792 r13006 17 17 18 18 // examine PSF sources in S/N order (brightest first) 19 sources = psArraySort (sources, p sphotSortBySN);19 sources = psArraySort (sources, pmSourceSortBySN); 20 20 21 21 // array to store candidate PSF stars -
trunk/psphot/src/psphotWeightBias.c
r12792 r13006 15 15 16 16 // source analysis is done in S/N order (brightest first) 17 sources = psArraySort (sources, p sphotSortBySN);17 sources = psArraySort (sources, pmSourceSortBySN); 18 18 19 19 // set fitting method to use non-poisson errors (local sky error)
Note:
See TracChangeset
for help on using the changeset viewer.
