Changeset 26317
- Timestamp:
- Dec 2, 2009, 9:43:55 AM (16 years ago)
- Location:
- branches/eam_branches/20091201
- Files:
-
- 6 edited
-
psModules/src/objects/pmSourceIO_CMF_PS1_V2.c (modified) (1 diff)
-
psphot/src/psphot.h (modified) (1 diff)
-
psphot/src/psphotFindDetections.c (modified) (1 diff)
-
psphot/src/psphotMergeSources.c (modified) (1 diff)
-
psphot/src/psphotSourceStats.c (modified) (1 diff)
-
psphot/src/psphotVisual.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20091201/psModules/src/objects/pmSourceIO_CMF_PS1_V2.c
r25754 r26317 304 304 source->peak->dx = dPAR[PM_PAR_XPOS]; 305 305 source->peak->dy = dPAR[PM_PAR_YPOS]; 306 source->peak->SN = sqrt(source->peak->flux); // XXX a proxy: various functions sort by peak S/N 306 307 307 308 source->pixWeight = psMetadataLookupF32 (&status, row, "PSF_QF"); -
branches/eam_branches/20091201/psphot/src/psphot.h
r25987 r26317 182 182 bool psphotVisualShowImage (pmReadout *readout); 183 183 bool psphotVisualShowBackground (pmConfig *config, const pmFPAview *view, pmReadout *readout); 184 bool psphotVisualShowSignificance (psImage *image );184 bool psphotVisualShowSignificance (psImage *image, float min, float max); 185 185 bool psphotVisualShowPeaks (pmDetections *detections); 186 186 bool psphotVisualShowFootprints (pmDetections *detections); -
branches/eam_branches/20091201/psphot/src/psphotFindDetections.c
r25755 r26317 39 39 psImage *significance = psphotSignificanceImage (readout, recipe, pass, maskVal); 40 40 41 // display the backsub and backgnd images 42 psphotVisualShowSignificance (significance); 41 // display the significance image 42 psphotVisualShowSignificance (significance, -1.0, 25.0*25.0); 43 44 // XXX getting some strange results from significance image 45 { 46 psImage *lsig = (psImage *) psUnaryOp (NULL, significance, "log"); 47 psphotVisualShowSignificance (lsig, 0.0, 4.0); 48 psFree (lsig); 49 } 43 50 44 51 // detect the peaks in the significance image -
branches/eam_branches/20091201/psphot/src/psphotMergeSources.c
r25983 r26317 124 124 } 125 125 126 // use the existing peak information, otherwise generate a new peak 127 if (source->peak) { 128 psArrayAdd (detections->peaks, 100, source->peak); 129 continue; 130 } 131 126 132 float flux = powf(10.0, -0.4 * source->psfMag); 127 133 float xpos = model->params->data.F32[PM_PAR_XPOS]; -
branches/eam_branches/20091201/psphot/src/psphotSourceStats.c
r25988 r26317 418 418 psMetadataAddF32 (regionMD, PS_LIST_TAIL, "PSF.CLUMP.DY", PS_META_REPLACE, "psf clump center", psfClump.dY); 419 419 420 // psphotVisualPlotMoments (recipe, sources);420 psphotVisualPlotMoments (recipe, analysis, sources); 421 421 422 422 Sout[i] = sqrt(0.5*(psfClump.X + psfClump.Y)) / sigma[i]; -
branches/eam_branches/20091201/psphot/src/psphotVisual.c
r26003 r26317 171 171 if (kapa == -1) return false; 172 172 173 //psphotVisualShowMask (kapa, readout->mask, "mask", 2);173 psphotVisualShowMask (kapa, readout->mask, "mask", 2); 174 174 psphotVisualScaleImage (kapa, readout->variance, readout->mask, "variance", 1); 175 175 psphotVisualScaleImage (kapa, readout->image, readout->mask, "image", 0); … … 204 204 } 205 205 206 bool psphotVisualShowSignificance (psImage *image ) {206 bool psphotVisualShowSignificance (psImage *image, float min, float max) { 207 207 208 208 if (!pmVisualIsVisual()) return true; … … 211 211 if (kapa == -1) return false; 212 212 213 psphotVisualRangeImage (kapa, image, "signif", 2, -1.0, 25.0*25.0);213 psphotVisualRangeImage (kapa, image, "signif", 2, min, max); 214 214 215 215 pmVisualAskUser(NULL);
Note:
See TracChangeset
for help on using the changeset viewer.
