Changeset 32924 for branches/eam_branches/ipp-20111122/psphot
- Timestamp:
- Dec 11, 2011, 1:42:35 PM (15 years ago)
- Location:
- branches/eam_branches/ipp-20111122/psphot/src
- Files:
-
- 11 edited
-
psphotFitSourcesLinear.c (modified) (1 diff)
-
psphotForcedReadout.c (modified) (1 diff)
-
psphotGuessModels.c (modified) (2 diffs)
-
psphotReadout.c (modified) (5 diffs)
-
psphotReadoutFindPSF.c (modified) (2 diffs)
-
psphotReadoutForcedKnownSources.c (modified) (1 diff)
-
psphotReadoutKnownSources.c (modified) (1 diff)
-
psphotReadoutMinimal.c (modified) (1 diff)
-
psphotSourceMatch.c (modified) (1 diff)
-
psphotStackMatchPSFsNext.c (modified) (1 diff)
-
psphotStackReadout.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20111122/psphot/src/psphotFitSourcesLinear.c
r32695 r32924 137 137 // psAssert (source->peak, "source without peak??"); 138 138 // psAssert (source->peak->footprint, "peak without footprint??"); 139 140 // XXX TEST 141 if (source->mode2 & PM_SOURCE_MODE2_MATCHED) { 142 fprintf (stderr, "forced photometry on supplied source\n"); 143 } 139 144 140 145 // turn this bit off and turn it on again if we pass this test -
branches/eam_branches/ipp-20111122/psphot/src/psphotForcedReadout.c
r29936 r32924 55 55 psphotLoadExtSources (config, view, filerule); 56 56 57 // construct an initial model for each object, set the radius to fitRadius, set circular fit mask 57 // Construct an initial model for each object, set the radius to fitRadius, set circular 58 // fit mask. NOTE: only applied to sources without guess models 58 59 psphotGuessModels (config, view, filerule); 59 60 -
branches/eam_branches/ipp-20111122/psphot/src/psphotGuessModels.c
r32633 r32924 46 46 psAssert (detections, "missing detections?"); 47 47 48 psArray *sources = detections-> newSources;48 psArray *sources = detections->allSources; 49 49 psAssert (sources, "missing sources?"); 50 50 … … 160 160 pmSource *source = sources->data[i]; 161 161 162 // do not redo sources already guessed 163 if (source->tmpFlags & PM_SOURCE_TMPF_MODEL_GUESS) continue; 164 162 165 // this is used to mark sources for which the model is measured. We check later that 163 166 // all are used. -
branches/eam_branches/ipp-20111122/psphot/src/psphotReadout.c
r32695 r32924 127 127 // psphotLoadExtSources (config, view, filerule); // pass 1 128 128 129 // construct an initial model for each object, set the radius to fitRadius, set circular130 // fit mask (detections->newSources)131 psphotGuessModels (config, view, filerule); // pass 1132 133 129 // merge the newly selected sources into the existing list 134 130 // NOTE: merge OLD and NEW 135 131 psphotMergeSources (config, view, filerule); 132 133 // Construct an initial model for each object, set the radius to fitRadius, set circular 134 // fit mask. NOTE: only applied to sources without guess models 135 psphotGuessModels (config, view, filerule); // pass 1 136 136 137 137 // linear PSF fit to source peaks, subtract the models from the image (in PSF mask) … … 193 193 } 194 194 195 // create full input models, set the radius to fitRadius, set circular fit mask196 // NOTE: apply only to detections->newSources197 psphotGuessModels (config, view, filerule); // pass 2 (detections->newSources)198 199 195 // replace all sources so fit below applies to all at once 200 196 // NOTE: apply only to OLD sources (which have been subtracted) … … 205 201 // XXX check on free of sources... 206 202 psphotMergeSources (config, view, filerule); // (detections->newSources + detections->allSources -> detections->allSources) 203 204 // Construct an initial model for each object, set the radius to fitRadius, set circular 205 // fit mask. NOTE: only applied to sources without guess models 206 psphotGuessModels (config, view, filerule); // pass 1 207 207 208 208 // NOTE: apply to ALL sources … … 234 234 } 235 235 236 // create full input models, set the radius to fitRadius, set circular fit mask237 // NOTE: apply only to detections->newSources238 psphotGuessModels (config, view, filerule); // pass 2 (detections->newSources)239 240 236 // replace all sources so fit below applies to all at once 241 237 // NOTE: apply only to OLD sources (which have been subtracted) … … 247 243 psphotMergeSources (config, view, filerule); // (detections->newSources + detections->allSources -> detections->allSources) 248 244 245 // Construct an initial model for each object, set the radius to fitRadius, set circular 246 // fit mask. NOTE: only applied to sources without guess models 247 psphotGuessModels (config, view, filerule); // pass 1 248 249 249 // NOTE: apply to ALL sources 250 250 psphotFitSourcesLinear (config, view, filerule, true); // pass 3 (detections->allSources) -
branches/eam_branches/ipp-20111122/psphot/src/psphotReadoutFindPSF.c
r30624 r32924 54 54 } 55 55 56 // merge the newly selected sources into the existing list 57 // NOTE: merge OLD and NEW 58 psphotMergeSources (config, view, filerule); 59 56 60 # if 0 57 61 // XXX if we want to determine the aperture residual correction here, we either … … 61 65 psphotGuessModels (config, view, filerule); 62 66 # endif 63 64 // merge the newly selected sources into the existing list65 // NOTE: merge OLD and NEW66 psphotMergeSources (config, view, filerule);67 67 68 68 # if 0 -
branches/eam_branches/ipp-20111122/psphot/src/psphotReadoutForcedKnownSources.c
r29936 r32924 36 36 } 37 37 38 // construct an initial model for each object39 psphotGuessModels (config, view, filerule);40 41 38 // merge the newly selected sources into the existing list 42 39 // NOTE: merge OLD and NEW 43 40 psphotMergeSources (config, view, filerule); 41 42 // Construct an initial model for each object, set the radius to fitRadius, set circular 43 // fit mask. NOTE: only applied to sources without guess models 44 psphotGuessModels (config, view, filerule); 44 45 45 46 // linear PSF fit to source peaks -
branches/eam_branches/ipp-20111122/psphot/src/psphotReadoutKnownSources.c
r30624 r32924 48 48 } 49 49 50 // construct an initial model for each object51 psphotGuessModels (config, view, filerule);52 53 50 // merge the newly selected sources into the existing list 54 51 // NOTE: merge OLD and NEW 55 52 psphotMergeSources (config, view, filerule); 53 54 // Construct an initial model for each object, set the radius to fitRadius, set circular 55 // fit mask. NOTE: only applied to sources without guess models 56 psphotGuessModels (config, view, filerule); 56 57 57 58 // linear PSF fit to source peaks -
branches/eam_branches/ipp-20111122/psphot/src/psphotReadoutMinimal.c
r29936 r32924 59 59 } 60 60 61 // construct an initial model for each object62 psphotGuessModels (config, view, filerule);63 64 61 // merge the newly selected sources into the existing list 65 62 psphotMergeSources (config, view, filerule); 63 64 // Construct an initial model for each object, set the radius to fitRadius, set circular 65 // fit mask. NOTE: only applied to sources without guess models 66 psphotGuessModels (config, view, filerule); 66 67 67 68 // linear PSF fit to source peaks -
branches/eam_branches/ipp-20111122/psphot/src/psphotSourceMatch.c
r32666 r32924 261 261 source->imageID = index; 262 262 source->mode2 |= PM_SOURCE_MODE2_MATCHED; // source is generated based on another image 263 source->type = PM_SOURCE_TYPE_STAR; // until we know more, assume a PSF fit 263 264 264 265 // add the peak -
branches/eam_branches/ipp-20111122/psphot/src/psphotStackMatchPSFsNext.c
r32348 r32924 51 51 52 52 bool status = false; 53 54 psTimerStart ("psphot.smooth"); 53 55 54 56 // find the currently selected readout -
branches/eam_branches/ipp-20111122/psphot/src/psphotStackReadout.c
r32695 r32924 160 160 } 161 161 162 // construct an initial model for each object, set the radius to fitRadius, set circular fit mask163 psphotGuessModels (config, view, STACK_SRC);164 165 162 // merge the newly selected sources into the existing list 166 163 // NOTE: merge OLD and NEW 167 164 psphotMergeSources (config, view, STACK_SRC); 165 166 // Construct an initial model for each object, set the radius to fitRadius, set circular 167 // fit mask. NOTE: only applied to sources without guess models 168 psphotGuessModels (config, view, STACK_SRC); 168 169 169 170 // linear PSF fit to source peaks, subtract the models from the image (in PSF mask) … … 248 249 } 249 250 250 // create full input models, set the radius to fitRadius, set circular fit mask251 // NOTE: apply only to detections->newSources252 psphotGuessModels (config, view, STACK_SRC); // pass 2 (detections->newSources)253 254 251 // replace all sources so fit below applies to all at once 255 252 // NOTE: apply only to OLD sources (which have been subtracted) … … 260 257 // XXX check on free of sources... 261 258 psphotMergeSources (config, view, STACK_SRC); // (detections->newSources + detections->allSources -> detections->allSources) 259 260 // Construct an initial model for each object, set the radius to fitRadius, set circular 261 // fit mask. NOTE: only applied to sources without guess models 262 psphotGuessModels (config, view, STACK_SRC); 262 263 } 263 264 … … 269 270 objects = psphotMatchSources (config, view, STACK_SRC); 270 271 psMemDump("matchsources"); 272 273 // Construct an initial model for each object, set the radius to fitRadius, set circular 274 // fit mask. NOTE: only applied to sources without guess models 275 psphotGuessModels (config, view, STACK_SRC); 271 276 272 277 psphotStackObjectsUnifyPosition (objects);
Note:
See TracChangeset
for help on using the changeset viewer.
