Changeset 36213
- Timestamp:
- Oct 13, 2013, 1:35:03 PM (13 years ago)
- Location:
- branches/eam_branches/ipp-20130904/psphot/src
- Files:
-
- 1 added
- 7 edited
-
Makefile.am (modified) (2 diffs)
-
psphot.h (modified) (1 diff)
-
psphotFullForce.SourceStats.c (added)
-
psphotKronFlux.c (modified) (1 diff)
-
psphotMergeSources.c (modified) (2 diffs)
-
psphotModelTestReadout.c (modified) (1 diff)
-
psphotSetThreads.c (modified) (1 diff)
-
psphotSourceStats.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130904/psphot/src/Makefile.am
r36148 r36213 89 89 psphotFullForce_SOURCES = \ 90 90 psphotFullForce.c \ 91 psphotFullForceArguments.c \91 psphotFullForceArguments.c \ 92 92 psphotParseCamera.c \ 93 93 psphotImageLoop.c \ … … 169 169 psphotForcedReadout.c \ 170 170 psphotFullForceReadout.c \ 171 psphotFullForce.SourceStats.c \ 171 172 psphotMakePSFReadout.c \ 172 173 psphotModelBackground.c \ -
branches/eam_branches/ipp-20130904/psphot/src/psphot.h
r36198 r36213 81 81 bool psphotSourceStats (pmConfig *config, const pmFPAview *view, const char *filerule, bool setWindow); 82 82 bool psphotSourceStatsReadout (pmConfig *config, const pmFPAview *view, const char *filerule, int index, psMetadata *recipe, bool setWindow); 83 84 bool psphotFullForceSourceStats (pmConfig *config, const pmFPAview *view, const char *filerule, bool setWindow); 85 bool psphotFullForceSourceStatsReadout (pmConfig *config, const pmFPAview *view, const char *filerule, int index, psMetadata *recipe, bool setWindow); 83 86 84 87 bool psphotDeblendSatstars (pmConfig *config, const pmFPAview *view, const char *filerule); -
branches/eam_branches/ipp-20130904/psphot/src/psphotKronFlux.c
r36148 r36213 40 40 } 41 41 } 42 42 43 return true; 43 44 } -
branches/eam_branches/ipp-20130904/psphot/src/psphotMergeSources.c
r36198 r36213 38 38 psArray *newSources = detections->newSources; 39 39 psAssert (newSources, "missing sources?"); 40 41 // XXX TEST:42 if (detections->allSources) {43 psphotMaskCosmicRayFootprintCheck(detections->allSources);44 }45 if (detections->newSources) {46 psphotMaskCosmicRayFootprintCheck(detections->newSources);47 }48 40 49 41 if (!detections->allSources) { … … 139 131 for (int i = 0; i < extCFF->allSources->n; i++) { 140 132 pmSource *source = extCFF->allSources->data[i]; 133 134 // setting this bit not only tracks the inputs, it makes pmSourceMoments 135 // keep the Mx,My values for the centroid. 141 136 source->mode |= PM_SOURCE_MODE_EXTERNAL; 142 137 143 // the supplied peak flux needs to be re-normalized 144 source->peak->rawFlux = 1.0; 145 source->peak->smoothFlux = 1.0; 146 source->peak->detValue = 1.0; 138 // source->peak->detValue,rawFlux,smoothFlux all set to input flux value 139 // source->peak->xf,yf, moments->Mx,My all set to input position 147 140 148 141 // drop the loaded source modelPSF -
branches/eam_branches/ipp-20130904/psphot/src/psphotModelTestReadout.c
r35769 r36213 125 125 126 126 // get the source moments 127 status = pmSourceMoments (source, radius, 0.25*radius, 0.0, MIN_KRON_RADIUS, maskVal);127 status = pmSourceMoments (source, radius, 0.25*radius, 0.0, MIN_KRON_RADIUS, maskVal); 128 128 if (!status) psAbort("psSourceMoments error"); 129 129 -
branches/eam_branches/ipp-20130904/psphot/src/psphotSetThreads.c
r36148 r36213 57 57 psFree(task); 58 58 59 task = psThreadTaskAlloc("PSPHOT_GALAXY_SHAPE ", 6);59 task = psThreadTaskAlloc("PSPHOT_GALAXY_SHAPES", 6); 60 60 task->function = &psphotGalaxyShape_Threaded; 61 61 psThreadTaskAdd(task); -
branches/eam_branches/ipp-20130904/psphot/src/psphotSourceStats.c
r35112 r36213 58 58 pmDetections *detections = psMetadataLookupPtr (&status, readout->analysis, "PSPHOT.DETECTIONS"); 59 59 psAssert (detections, "missing detections?"); 60 61 // XXX TEST:62 if (detections->allSources) {63 psphotMaskCosmicRayFootprintCheck(detections->allSources);64 }65 if (detections->newSources) {66 psphotMaskCosmicRayFootprintCheck(detections->newSources);67 }68 60 69 61 // determine the number of allowed threads … … 246 238 psphotVisualShowMoments (sources); 247 239 248 // clear the mark bits249 // psImageMaskPixels (readout->mask, "AND", PS_NOT_IMAGE_MASK(markVal));250 251 if (detections->allSources) {252 psphotMaskCosmicRayFootprintCheck(detections->allSources);253 }254 if (detections->newSources) {255 psphotMaskCosmicRayFootprintCheck(detections->newSources);256 }257 258 240 return true; 259 241 } … … 572 554 573 555 // measure basic source moments (no S/N clipping on input pixels) 556 // sources with (mode & MODE_EXTERNAL) or (mode2 & MODE2_MATCHED) use the 557 // supplied Mx,My value for the centroid (not recalculated) 574 558 status = pmSourceMoments (source, 4*sigma[i], sigma[i], 0.0, 0.0, maskVal); 575 559 }
Note:
See TracChangeset
for help on using the changeset viewer.
