- Timestamp:
- Sep 17, 2009, 2:26:32 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20090715/psphot/src/psphotPetrosianAnalysis.c
r25275 r25433 12 12 // XXX temporary user-supplied systematic sky noise measurement (derive from background model) 13 13 float skynoise = psMetadataLookupF32 (&status, recipe, "SKY.NOISE"); 14 15 # if (0) 16 // if backModel or backStdev are missing, the values of sky and/or skyErr will be set to NAN 17 // XXX use this to set skynoise 18 pmReadout *backModel = psphotSelectBackground (config, view); 19 pmReadout *backStdev = psphotSelectBackgroundStdev (config, view); 20 # endif 14 21 15 22 // S/N limit to perform full non-linear fits … … 33 40 if (source->type == PM_SOURCE_TYPE_DEFECT) continue; 34 41 if (source->type == PM_SOURCE_TYPE_SATURATED) continue; 42 if (source->mode & PM_SOURCE_MODE_DEFECT) continue; 43 if (source->mode & PM_SOURCE_MODE_SATSTAR) continue; 44 if (!(source->mode & PM_SOURCE_MODE_EXT_LIMIT)) continue; 35 45 36 46 // limit selection to some SN limit 37 47 assert (source->peak); // how can a source not have a peak? 38 48 if (source->peak->SN < SN_LIM) continue; 39 if (source->extNsigma < 10.0) continue; // XXX this should not be hardwired40 49 41 50 // limit selection by analysis region … … 50 59 } 51 60 52 psphotPetrosianProfile (source, skynoise); 61 psphotPetrosianProfile (readout, source, skynoise); 62 63 pmSourceSub (source, PM_MODEL_OP_FULL, maskVal); 64 source->tmpFlags |= PM_SOURCE_TMPF_SUBTRACTED; 53 65 } 66 67 psphotVisualShowResidualImage (readout); 54 68 55 69 // pause and wait for user input:
Note:
See TracChangeset
for help on using the changeset viewer.
