Changeset 30977
- Timestamp:
- Mar 18, 2011, 2:11:57 PM (15 years ago)
- Location:
- branches/eam_branches/ipp-20110213
- Files:
-
- 7 edited
-
ppSim/src/Makefile.am (modified) (1 diff)
-
ppSim/src/ppSimDetectionLimits.c (modified) (1 diff)
-
ppSim/src/ppSimDetections.c (modified) (3 diffs)
-
ppSub/src/ppSubFlagNeighbors.c (modified) (3 diffs)
-
ppSub/src/ppSubMakePSF.c (modified) (1 diff)
-
psastro/src/psastroConvert.c (modified) (1 diff)
-
pswarp/src/pswarpTransformSources.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110213/ppSim/src/Makefile.am
r30618 r30977 48 48 ppSimLoop.c \ 49 49 ppSimMergeReadouts.c \ 50 ppSimDetections.c \51 50 ppSimMergeSources.c \ 52 51 ppSimMosaicChip.c \ -
branches/eam_branches/ipp-20110213/ppSim/src/ppSimDetectionLimits.c
r18011 r30977 3 3 // compare injected sources (PPSIM.SOURCES) and measured fake sources (PPSIM.FAKE.SOURCES) 4 4 // to determine detection limits and recovered magnitude errors 5 // XXX this function is not used 5 6 bool ppSimDetectionLimits (pmConfig *config, pmFPAview *view) { 6 7 -
branches/eam_branches/ipp-20110213/ppSim/src/ppSimDetections.c
r18011 r30977 1 1 # include "ppSim.h" 2 2 3 // XXX this function is not used 3 4 bool ppSimDetections (psImage *significance, psMetadata *recipe, psArray *sources) { 4 5 psAssert (sources, "programming error: ppSimDetections passed NULL sources"); … … 12 13 float SIGMA_SMTH = psMetadataLookupF32 (&status, recipe, "SIGMA_SMOOTH"); 13 14 psAssert (status, "SIGMA_SMOOTH missing: call psphotSignificanceImage first"); 14 float effArea = 4.0*M_PI*PS_SQR(SIGMA_SMTH);15 // float effArea = 4.0*M_PI*PS_SQR(SIGMA_SMTH); 15 16 16 17 int row0 = significance->row0; … … 23 24 psAssert (peak, "peak is not defined for the source"); 24 25 25 peak->value = significance->data.F32[peak->y-row0][peak->x-col0]; 26 peak->SN = sqrt(peak->value*effArea); 27 26 peak->detValue = significance->data.F32[peak->y-row0][peak->x-col0]; 28 27 } 29 28 return true; -
branches/eam_branches/ipp-20110213/ppSub/src/ppSubFlagNeighbors.c
r30892 r30977 191 191 if (!isfinite(src->peak->xf)) NEXT1; 192 192 if (!isfinite(src->peak->yf)) NEXT1; 193 if (!isfinite(src->peak-> SN)) NEXT1;194 if (s rc->peak->SN< MIN_SN) NEXT1;193 if (!isfinite(src->peak->detValue)) NEXT1; 194 if (sqrt(src->peak->detValue) < MIN_SN) NEXT1; 195 195 196 196 if (!obj) NEXT2; … … 213 213 if (!isfinite(src->peak->xf)) NEXT1; 214 214 if (!isfinite(src->peak->yf)) NEXT1; 215 if (!isfinite(src->peak-> SN)) NEXT1;216 if (s rc->peak->SN< MIN_SN) NEXT1;215 if (!isfinite(src->peak->detValue)) NEXT1; 216 if (sqrt(src->peak->detValue) < MIN_SN) NEXT1; 217 217 218 218 dx = src->peak->xf - obj->x; … … 235 235 src = sources->data[Imin]; 236 236 237 // fprintf (stderr, "j: %d, Imin: %d, obj x,y: %f, %f src x,y: %f, %f, SN: %f, ID: %d\n", j, Imin, obj->x, obj->y, src->peak->xf, src->peak->yf, s rc->peak->SN, src->id);237 // fprintf (stderr, "j: %d, Imin: %d, obj x,y: %f, %f src x,y: %f, %f, SN: %f, ID: %d\n", j, Imin, obj->x, obj->y, src->peak->xf, src->peak->yf, sqrt(src->peak->detValue), src->id); 238 238 239 239 // add source to object -
branches/eam_branches/ipp-20110213/ppSub/src/ppSubMakePSF.c
r30619 r30977 158 158 psArray *ppSubSelectPSFSources(psArray *sources){ 159 159 160 sources = psArraySort (sources, pmSourceSortBy SN);160 sources = psArraySort (sources, pmSourceSortByFlux); 161 161 162 162 psArray *subset = psArrayAllocEmpty(MAX_NPSF); -
branches/eam_branches/ipp-20110213/psastro/src/psastroConvert.c
r26897 r30977 58 58 // sort in ascending magnitude order 59 59 // psArraySort (inStars, psastroSortByMag); 60 // psVector *index = psArraySortIndex (sources, pmSourceSortBy SN);60 // psVector *index = psArraySortIndex (sources, pmSourceSortByFlux); 61 61 psVector *index = psArraySortIndex (NULL, inStars, psastroSortByMag); 62 62 -
branches/eam_branches/ipp-20110213/pswarp/src/pswarpTransformSources.c
r29000 r30977 94 94 // relative flux) that's OK. 95 95 pmSource *new = pmSourceAlloc(); ///< New source 96 new->peak = pmPeakAlloc(xOut, yOut, source->peak->flux, PM_PEAK_LONE); 97 new->peak->flux = source->peak->flux; 96 new->peak = pmPeakAlloc(xOut, yOut, source->peak->detValue, PM_PEAK_LONE); 97 new->peak->rawFlux = source->peak->rawFlux; 98 new->peak->smoothFlux = source->peak->smoothFlux; 98 99 new->type = source->type; 99 100 new->mode = source->mode;
Note:
See TracChangeset
for help on using the changeset viewer.
