Changeset 26772
- Timestamp:
- Feb 4, 2010, 6:40:11 PM (16 years ago)
- Location:
- branches/eam_branches/psphot.stack.20100120/src
- Files:
-
- 20 edited
-
psphotAddNoise.c (modified) (1 diff)
-
psphotApResid.c (modified) (2 diffs)
-
psphotBasicDeblend.c (modified) (1 diff)
-
psphotBlendFit.c (modified) (1 diff)
-
psphotChoosePSF.c (modified) (1 diff)
-
psphotEfficiency.c (modified) (1 diff)
-
psphotExtendedSourceAnalysis.c (modified) (1 diff)
-
psphotExtendedSourceFits.c (modified) (1 diff)
-
psphotFitSourcesLinear.c (modified) (1 diff)
-
psphotGuessModels.c (modified) (1 diff)
-
psphotImageQuality.c (modified) (1 diff)
-
psphotMagnitudes.c (modified) (1 diff)
-
psphotMergeSources.c (modified) (4 diffs)
-
psphotReadoutFindPSF.c (modified) (2 diffs)
-
psphotReadoutKnownSources.c (modified) (1 diff)
-
psphotReplaceUnfit.c (modified) (1 diff)
-
psphotRoughClass.c (modified) (1 diff)
-
psphotSkyReplace.c (modified) (1 diff)
-
psphotSourceFreePixels.c (modified) (1 diff)
-
psphotSourceSize.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/psphot.stack.20100120/src/psphotAddNoise.c
r26691 r26772 24 24 for (int i = 0; i < num; i++) { 25 25 if (!psphotAddOrSubNoiseReadout (config, view, "PSPHOT.INPUT", i, recipe, add)) { 26 psError (PSPHOT_ERR_CONFIG, false, "failed on saturated star deblend analysisfor PSPHOT.INPUT entry %d", i);26 psError (PSPHOT_ERR_CONFIG, false, "failed on to modify noise for PSPHOT.INPUT entry %d", i); 27 27 return false; 28 28 } -
branches/eam_branches/psphot.stack.20100120/src/psphotApResid.c
r26748 r26772 19 19 for (int i = 0; i < num; i++) { 20 20 if (!psphotApResidReadout (config, view, "PSPHOT.INPUT", i, recipe)) { 21 psError (PSPHOT_ERR_CONFIG, false, "failed on saturated star deblend analysisfor PSPHOT.INPUT entry %d", i);21 psError (PSPHOT_ERR_CONFIG, false, "failed to measure aperture residual for PSPHOT.INPUT entry %d", i); 22 22 return false; 23 23 } … … 352 352 psFree (mag); 353 353 psFree (dMag); 354 return false; 354 return true; 355 // this is a quality error, not a programming error 355 356 } 356 357 -
branches/eam_branches/psphot.stack.20100120/src/psphotBasicDeblend.c
r26691 r26772 12 12 for (int i = 0; i < num; i++) { 13 13 if (!psphotBasicDeblendReadout (config, view, "PSPHOT.INPUT", i)) { 14 psError (PSPHOT_ERR_CONFIG, false, "failed on saturated stardeblend analysis for PSPHOT.INPUT entry %d", i);14 psError (PSPHOT_ERR_CONFIG, false, "failed on basic deblend analysis for PSPHOT.INPUT entry %d", i); 15 15 return false; 16 16 } -
branches/eam_branches/psphot.stack.20100120/src/psphotBlendFit.c
r26748 r26772 16 16 for (int i = 0; i < num; i++) { 17 17 if (!psphotBlendFitReadout (config, view, "PSPHOT.INPUT", i, recipe)) { 18 psError (PSPHOT_ERR_CONFIG, false, "failed on saturated star deblend analysisfor PSPHOT.INPUT entry %d", i);18 psError (PSPHOT_ERR_CONFIG, false, "failed to fit sources (non-linear) for PSPHOT.INPUT entry %d", i); 19 19 return false; 20 20 } -
branches/eam_branches/psphot.stack.20100120/src/psphotChoosePSF.c
r26748 r26772 16 16 for (int i = 0; i < num; i++) { 17 17 if (!psphotChoosePSFReadout (config, view, "PSPHOT.INPUT", i, recipe)) { 18 psError (PSPHOT_ERR_CONFIG, false, "failed on saturated star deblend analysisfor PSPHOT.INPUT entry %d", i);18 psError (PSPHOT_ERR_CONFIG, false, "failed to choose a psf model for PSPHOT.INPUT entry %d", i); 19 19 return false; 20 20 } -
branches/eam_branches/psphot.stack.20100120/src/psphotEfficiency.c
r26748 r26772 164 164 for (int i = 0; i < num; i++) { 165 165 if (!psphotEfficiencyReadout (config, view, "PSPHOT.INPUT", i, recipe)) { 166 psError (PSPHOT_ERR_CONFIG, false, "failed on saturated star deblend analysisfor PSPHOT.INPUT entry %d", i);166 psError (PSPHOT_ERR_CONFIG, false, "failed to measure detection efficiency for PSPHOT.INPUT entry %d", i); 167 167 return false; 168 168 } -
branches/eam_branches/psphot.stack.20100120/src/psphotExtendedSourceAnalysis.c
r26691 r26772 22 22 for (int i = 0; i < num; i++) { 23 23 if (!psphotExtendedSourceAnalysisReadout (config, view, "PSPHOT.INPUT", i, recipe)) { 24 psError (PSPHOT_ERR_CONFIG, false, "failed on saturated star deblend analysis for PSPHOT.INPUT entry %d", i);24 psError (PSPHOT_ERR_CONFIG, false, "failed on measure extended source aperture-like parameters for PSPHOT.INPUT entry %d", i); 25 25 return false; 26 26 } -
branches/eam_branches/psphot.stack.20100120/src/psphotExtendedSourceFits.c
r26691 r26772 22 22 for (int i = 0; i < num; i++) { 23 23 if (!psphotExtendedSourceFitsReadout (config, view, "PSPHOT.INPUT", i, recipe)) { 24 psError (PSPHOT_ERR_CONFIG, false, "failed on saturated star deblend analysis for PSPHOT.INPUT entry %d", i);24 psError (PSPHOT_ERR_CONFIG, false, "failed on to fit extended sources for PSPHOT.INPUT entry %d", i); 25 25 return false; 26 26 } -
branches/eam_branches/psphot.stack.20100120/src/psphotFitSourcesLinear.c
r26691 r26772 23 23 for (int i = 0; i < num; i++) { 24 24 if (!psphotFitSourcesLinearReadout (config, view, "PSPHOT.INPUT", i, final)) { 25 psError (PSPHOT_ERR_CONFIG, false, "failed on saturated star deblend analysisfor PSPHOT.INPUT entry %d", i);25 psError (PSPHOT_ERR_CONFIG, false, "failed to fit sources (linear) for PSPHOT.INPUT entry %d", i); 26 26 return false; 27 27 } -
branches/eam_branches/psphot.stack.20100120/src/psphotGuessModels.c
r26748 r26772 18 18 for (int i = 0; i < num; i++) { 19 19 if (!psphotGuessModelsReadout (config, view, "PSPHOT.INPUT", i)) { 20 psError (PSPHOT_ERR_CONFIG, false, "failed on saturated star deblend analysis for PSPHOT.INPUT entry %d", i);20 psError (PSPHOT_ERR_CONFIG, false, "failed on to guess models for PSPHOT.INPUT entry %d", i); 21 21 return false; 22 22 } -
branches/eam_branches/psphot.stack.20100120/src/psphotImageQuality.c
r26748 r26772 19 19 for (int i = 0; i < num; i++) { 20 20 if (!psphotImageQualityReadout (config, view, "PSPHOT.INPUT", i, recipe)) { 21 psError (PSPHOT_ERR_CONFIG, false, "failed on saturated star deblend analysisfor PSPHOT.INPUT entry %d", i);21 psError (PSPHOT_ERR_CONFIG, false, "failed on to measure image quality for PSPHOT.INPUT entry %d", i); 22 22 return false; 23 23 } -
branches/eam_branches/psphot.stack.20100120/src/psphotMagnitudes.c
r26691 r26772 15 15 for (int i = 0; i < num; i++) { 16 16 if (!psphotMagnitudesReadout (config, view, "PSPHOT.INPUT", i, recipe)) { 17 psError (PSPHOT_ERR_CONFIG, false, "failed on saturated star deblend analysis for PSPHOT.INPUT entry %d", i);17 psError (PSPHOT_ERR_CONFIG, false, "failed to measure magnitudes for PSPHOT.INPUT entry %d", i); 18 18 return false; 19 19 } -
branches/eam_branches/psphot.stack.20100120/src/psphotMergeSources.c
r26748 r26772 168 168 if (!detections) { 169 169 psLogMsg ("psphot", 3, "no psf sources for this readout"); 170 return NULL; 170 171 } 171 172 … … 173 174 if (!sources) { 174 175 psLogMsg ("psphot", 3, "no psf sources for this readout"); 176 return NULL; 175 177 } 176 178 … … 178 180 } 179 181 182 // this function is used to fix sources which were loaded externally, but have passed from 183 // psphotDetectionsFromSources to psphotSourceStats and are now stored on 184 // detections->newSources. 180 185 bool psphotRepairLoadedSources (pmConfig *config, const pmFPAview *view) { 181 186 … … 193 198 } 194 199 195 psArray *sources = detections-> allSources;200 psArray *sources = detections->newSources; 196 201 psAssert (sources, "missing sources?"); 197 202 -
branches/eam_branches/psphot.stack.20100120/src/psphotReadoutFindPSF.c
r26748 r26772 26 26 } 27 27 28 // construct sources and measure basic stats (moments, local sky)28 // construct detections->newSources and measure basic stats (moments, local sky) 29 29 if (!psphotSourceStats(config, view, true)) { 30 30 psError(PSPHOT_ERR_UNKNOWN, false, "failure to generate sources"); … … 60 60 // construct an initial model for each object, set the radius to fitRadius, set circular fit mask 61 61 psphotGuessModels (config, view); 62 # endif 62 63 64 // merge the newly selected sources into the existing list 65 // NOTE: merge OLD and NEW 66 psphotMergeSources (config, view); 67 68 # if 0 63 69 // measure aperture photometry corrections 64 70 if (!psphotApResid (config, view)) { -
branches/eam_branches/psphot.stack.20100120/src/psphotReadoutKnownSources.c
r26748 r26772 51 51 psphotGuessModels (config, view); 52 52 53 // merge the newly selected sources into the existing list 54 // NOTE: merge OLD and NEW 55 psphotMergeSources (config, view); 56 53 57 // linear PSF fit to source peaks 54 58 psphotFitSourcesLinear (config, view, false); -
branches/eam_branches/psphot.stack.20100120/src/psphotReplaceUnfit.c
r26691 r26772 37 37 for (int i = 0; i < num; i++) { 38 38 if (!psphotReplaceAllSourcesReadout (config, view, "PSPHOT.INPUT", i, recipe)) { 39 psError (PSPHOT_ERR_CONFIG, false, "failed on saturated star deblend analysis for PSPHOT.INPUT entry %d", i);39 psError (PSPHOT_ERR_CONFIG, false, "failed to replace all sources for PSPHOT.INPUT entry %d", i); 40 40 return false; 41 41 } -
branches/eam_branches/psphot.stack.20100120/src/psphotRoughClass.c
r26748 r26772 22 22 for (int i = 0; i < num; i++) { 23 23 if (!psphotRoughClassReadout (config, view, "PSPHOT.INPUT", i, recipe)) { 24 psError (PSPHOT_ERR_CONFIG, false, "failed on saturated star deblend analysisfor PSPHOT.INPUT entry %d", i);24 psError (PSPHOT_ERR_CONFIG, false, "failed on rough classification for PSPHOT.INPUT entry %d", i); 25 25 return false; 26 26 } -
branches/eam_branches/psphot.stack.20100120/src/psphotSkyReplace.c
r26691 r26772 11 11 for (int i = 0; i < num; i++) { 12 12 if (!psphotSkyReplaceReadout (config, view, "PSPHOT.INPUT", i)) { 13 psError (PSPHOT_ERR_CONFIG, false, "failed on saturated star deblend analysisfor PSPHOT.INPUT entry %d", i);13 psError (PSPHOT_ERR_CONFIG, false, "failed to replace sky for PSPHOT.INPUT entry %d", i); 14 14 return false; 15 15 } -
branches/eam_branches/psphot.stack.20100120/src/psphotSourceFreePixels.c
r26691 r26772 11 11 for (int i = 0; i < num; i++) { 12 12 if (!psphotSourceFreePixelsReadout (config, view, "PSPHOT.INPUT", i)) { 13 psError (PSPHOT_ERR_CONFIG, false, "failed on saturated star deblend analysis for PSPHOT.INPUT entry %d", i);13 psError (PSPHOT_ERR_CONFIG, false, "failed to free source pixels for PSPHOT.INPUT entry %d", i); 14 14 return false; 15 15 } -
branches/eam_branches/psphot.stack.20100120/src/psphotSourceSize.c
r26748 r26772 44 44 for (int i = 0; i < num; i++) { 45 45 if (!psphotSourceSizeReadout (config, view, "PSPHOT.INPUT", i, recipe, getPSFsize)) { 46 psError (PSPHOT_ERR_CONFIG, false, "failed on s aturated star deblendanalysis for PSPHOT.INPUT entry %d", i);46 psError (PSPHOT_ERR_CONFIG, false, "failed on source size analysis for PSPHOT.INPUT entry %d", i); 47 47 return false; 48 48 }
Note:
See TracChangeset
for help on using the changeset viewer.
