Changeset 29347
- Timestamp:
- Oct 7, 2010, 9:44:38 AM (16 years ago)
- Location:
- branches/eam_branches/ipp-20100823/psphot/src
- Files:
-
- 6 edited
-
psphot.h (modified) (1 diff)
-
psphotExtendedSourceFits.c (modified) (2 diffs)
-
psphotFindDetections.c (modified) (1 diff)
-
psphotSignificanceImage.c (modified) (4 diffs)
-
psphotSourceSize.c (modified) (1 diff)
-
psphotSourceStats.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20100823/psphot/src/psphot.h
r29004 r29347 167 167 168 168 // used by psphotFindDetections 169 psImage *psphotSignificanceImage (pmReadout *readout, psMetadata *recipe, const int pass,psImageMaskType maskVal);169 psImage *psphotSignificanceImage (pmReadout *readout, psMetadata *recipe, psImageMaskType maskVal); 170 170 psArray *psphotFindPeaks (psImage *significance, pmReadout *readout, psMetadata *recipe, const float threshold, const int nMax); 171 171 bool psphotFindFootprints (pmDetections *detections, psImage *significance, pmReadout *readout, psMetadata *recipe, const float threshold, const int pass, psImageMaskType maskVal); -
branches/eam_branches/ipp-20100823/psphot/src/psphotExtendedSourceFits.c
r29341 r29347 85 85 return true; 86 86 } 87 88 psphotInitRadiusEXT (recipe, readout); 87 89 88 90 // validate the model entries … … 167 169 PS_ARRAY_ADD_SCALAR(job->args, 0, PS_TYPE_S32); // this is used as a return value for NplainPass 168 170 169 if ( !psThreadJobAddPending(job)) {171 if (false && !psThreadJobAddPending(job)) { 170 172 psError(PS_ERR_UNKNOWN, false, "Unable to guess model."); 171 173 psFree(AnalysisRegion); 172 174 return false; 173 } 175 } else { 176 if (!psphotExtendedSourceFits_Threaded(job)) { 177 psError(PS_ERR_UNKNOWN, false, "Unable to guess model."); 178 psFree(AnalysisRegion); 179 return false; 180 } 181 } 174 182 } 175 183 -
branches/eam_branches/ipp-20100823/psphot/src/psphotFindDetections.c
r29004 r29347 85 85 86 86 // generate the smoothed significance image 87 psImage *significance = psphotSignificanceImage (readout, recipe, pass,maskVal);87 psImage *significance = psphotSignificanceImage (readout, recipe, maskVal); 88 88 89 89 // display the significance image -
branches/eam_branches/ipp-20100823/psphot/src/psphotSignificanceImage.c
r29004 r29347 4 4 // (S/N)^2. If FWMH_X,Y have been recorded, use them, otherwise use PEAKS_SMOOTH_SIGMA for the 5 5 // smoothing kernel. 6 psImage *psphotSignificanceImage (pmReadout *readout, psMetadata *recipe, const int pass,psImageMaskType maskVal) {6 psImage *psphotSignificanceImage (pmReadout *readout, psMetadata *recipe, psImageMaskType maskVal) { 7 7 8 8 float SIGMA_SMTH, NSIGMA_SMTH; … … 67 67 // XXX change these to recipe value checks 68 68 if (psTraceGetLevel("psphot") > 5) { 69 static int pass = 0; 69 70 char name[64]; 70 71 sprintf (name, "imsmooth.v%d.fits", pass); … … 72 73 sprintf (name, "wtsmooth.v%d.fits", pass); 73 74 psphotSaveImage(NULL, smooth_wt, name); 75 pass ++; 74 76 } 75 77 … … 108 110 if (psTraceGetLevel("psphot") > 5) { 109 111 char name[64]; 112 static int pass = 0; 110 113 sprintf (name, "snsmooth.v%d.fits", pass); 111 114 psphotSaveImage (NULL, smooth_im, name); 115 pass ++; 112 116 } 113 117 -
branches/eam_branches/ipp-20100823/psphot/src/psphotSourceSize.c
r29311 r29347 413 413 // ** CRs are reliably flagged by a combination on Mminor < X && mag (or flux) > Y 414 414 415 Mminor = 0.5*(Mxx + Myy) - 0.5*sqrt(PS_SQR(Mxx - Myy) + 4.0*PS_SQR(Mxy)); 415 float Mminor = 0.5*(Mxx + Myy) - 0.5*sqrt(PS_SQR(Mxx - Myy) + 4.0*PS_SQR(Mxy)); 416 if ((Mminor < 1.0) && (apMag < -8.0)) { 417 fprintf (stderr, "likely CR @ %f,%f\n", source->peak->xf, source->peak->yf); 418 } 416 419 417 420 // XXX do I need to find the Mminor, Mmajor distribution? -
branches/eam_branches/ipp-20100823/psphot/src/psphotSourceStats.c
r29230 r29347 45 45 pmReadout *readout = pmFPAviewThisReadout(view, file->fpa); 46 46 psAssert (readout, "missing readout?"); 47 48 if (psTraceGetLevel("psphot") > 5) { 49 static int pass = 0; 50 char name[64]; 51 sprintf (name, "srstats.v%d.fits", pass); 52 psphotSaveImage(NULL, readout->image, name); 53 pass ++; 54 } 47 55 48 56 pmDetections *detections = psMetadataLookupPtr (&status, readout->analysis, "PSPHOT.DETECTIONS");
Note:
See TracChangeset
for help on using the changeset viewer.
