Changeset 27939
- Timestamp:
- May 12, 2010, 3:54:46 PM (16 years ago)
- Location:
- branches/eam_branches/psphot.20100506/src
- Files:
-
- 2 added
- 6 edited
-
Makefile.am (modified) (2 diffs)
-
psphot.h (modified) (1 diff)
-
psphotExtendedSourceAnalysis.c (modified) (1 diff)
-
psphotExtendedSourceAnalysisByObject.c (added)
-
psphotFitSourcesLinearStack.c (modified) (1 diff)
-
psphotRadialAperturesByObject.c (added)
-
psphotSourceMatch.c (modified) (4 diffs)
-
psphotStackReadout.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/psphot.20100506/src/Makefile.am
r27932 r27939 164 164 psphotModelWithPSF.c \ 165 165 psphotExtendedSourceAnalysis.c \ 166 psphotExtendedSourceAnalysisByObject.c \ 166 167 psphotExtendedSourceFits.c \ 167 168 psphotKernelFromPSF.c \ … … 192 193 psphotRadialBins.c \ 193 194 psphotRadialApertures.c \ 195 psphotRadialAperturesByObject.c \ 194 196 psphotPetrosian.c \ 195 197 psphotPetrosianRadialBins.c \ -
branches/eam_branches/psphot.20100506/src/psphot.h
r27932 r27939 462 462 bool psphotRadialApertureSource (pmSource *source, psMetadata *recipe, float skynoise, psImageMaskType maskVal, const psVector *radMax); 463 463 464 bool psphotExtendedSourceAnalysisByObject (pmConfig *config, psArray *objects, const pmFPAview *view, const char *filerule); 465 bool psphotRadialAperturesByObject (pmConfig *config, psArray *objects, const pmFPAview *view, const char *filerule); 466 464 467 #endif -
branches/eam_branches/psphot.20100506/src/psphotExtendedSourceAnalysis.c
r27909 r27939 1 1 # include "psphotInternal.h" 2 3 // ?? these cannot happen here --> we would need to do this in psphotExtendedSourceAnalysis 4 // XXX option to choose a consistent position 5 // XXX option to choose a consistent elliptical contour 6 // XXX SDSS uses the r-band petrosian radius to measure petrosian fluxes in all bands 7 // XXX consistent choice of extendedness... 2 8 3 9 // for now, let's store the detections on the readout->analysis for each readout -
branches/eam_branches/psphot.20100506/src/psphotFitSourcesLinearStack.c
r27657 r27939 28 28 29 29 // analysis is done in spatial order (to speed up overlap search) 30 // sort by first element in each source list31 30 objects = psArraySort (objects, pmPhotObjSortByX); 32 31 -
branches/eam_branches/psphot.20100506/src/psphotSourceMatch.c
r27909 r27939 1 1 # include "psphotInternal.h" 2 2 3 bool psphotMatchSourcesGenerate (pmConfig *config, const pmFPAview *view, const char *filerule, psArray *objects); 3 bool psphotMatchSourcesAddMissing (pmConfig *config, const pmFPAview *view, const char *filerule, psArray *objects); 4 bool psphotMatchSourcesSetIDs (psArray *objects); 4 5 5 6 psArray *psphotMatchSources (pmConfig *config, const pmFPAview *view, const char *filerule) … … 21 22 } 22 23 23 psphotMatchSourcesGenerate (config, view, filerule, objects); 24 // create sources for images where an object has been detected in the other images 25 psphotMatchSourcesAddMissing (config, view, filerule, objects); 26 27 // choose a consistent position; set common sequence values 28 psphotMatchSourcesSetIDs (objects); 24 29 25 30 return objects; … … 145 150 } 146 151 147 bool psphotMatchSources Generate(pmConfig *config, const pmFPAview *view, const char *filerule, psArray *objects) {152 bool psphotMatchSourcesAddMissing (pmConfig *config, const pmFPAview *view, const char *filerule, psArray *objects) { 148 153 149 154 bool status = false; … … 255 260 return true; 256 261 } 262 263 bool psphotMatchSourcesSetIDs (psArray *objects) { 264 265 for (int i = 0; i < objects->n; i++) { 266 pmPhotObj *obj = objects->data[i]; 267 268 // set the source->seq values 269 for (int j = 0; j < obj->sources->n; j++) { 270 pmSource *src = obj->sources->data[j]; 271 src->seq = i; 272 } 273 } 274 return true; 275 } -
branches/eam_branches/psphot.20100506/src/psphotStackReadout.c
r27932 r27939 150 150 // linear PSF fit to source peaks, subtract the models from the image (in PSF mask) 151 151 psphotFitSourcesLinearStack (config, objects, FALSE); 152 psFree (objects);153 152 154 153 // identify CRs and extended sources … … 157 156 // measure aperture photometry corrections 158 157 if (!psphotApResid (config, view, STACK_OUT)) { 158 psFree (objects); 159 159 psLogMsg ("psphot", 3, "failed on psphotApResid"); 160 160 return psphotReadoutCleanup (config, view, STACK_OUT); 161 161 } 162 162 163 psphotRadialApertures (config, view, STACK_OUT);164 psphotExtendedSourceAnalysis (config, view, STACK_OUT); // pass 1 (detections->allSources)163 psphotRadialAperturesByObject (config, objects, view, STACK_OUT); 164 psphotExtendedSourceAnalysisByObject (config, objects, view, STACK_OUT); // pass 1 (detections->allSources) 165 165 psphotExtendedSourceFits (config, view, STACK_OUT); // pass 1 (detections->allSources) 166 166 … … 186 186 psphotStackRemoveChisqFromInputs(config, STACK_RAW); 187 187 188 psFree (objects); 189 188 190 // create the exported-metadata and free local data 189 191 return psphotReadoutCleanup (config, view, STACK_OUT);
Note:
See TracChangeset
for help on using the changeset viewer.
