Changeset 30166
- Timestamp:
- Dec 24, 2010, 3:19:26 PM (15 years ago)
- Location:
- branches/eam_branches/ipp-20101205/psphot/src
- Files:
-
- 6 edited
-
psphotBlendFit.c (modified) (1 diff)
-
psphotExtendedSourceAnalysis.c (modified) (2 diffs)
-
psphotExtendedSourceAnalysisByObject.c (modified) (1 diff)
-
psphotRadialApertures.c (modified) (2 diffs)
-
psphotRadiusChecks.c (modified) (4 diffs)
-
psphotSourceFits.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20101205/psphot/src/psphotBlendFit.c
r29936 r30166 187 187 psLogMsg ("psphot.psphotBlendFit", PS_LOG_INFO, "fit models: %f sec for %d objects (%d psf, %d ext, %d failed, %ld skipped)\n", psTimerMark ("psphot.fit.nonlinear"), Nfit, Npsf, Next, Nfail, sources->n - Nfit); 188 188 189 psphotVisualShowResidualImage (readout); 189 psphotVisualShowResidualImage (readout, false); 190 psphotVisualShowObjectRegions (readout, recipe, sources); 190 191 psphotVisualShowFlags (sources); 191 192 -
branches/eam_branches/ipp-20101205/psphot/src/psphotExtendedSourceAnalysis.c
r30140 r30166 133 133 radius = PS_MAX (radius, source->pixels->numRows - source->peak->yf + source->pixels->row0); 134 134 radius = PS_MAX (radius, source->pixels->numCols - source->peak->xf + source->pixels->col0); 135 pmSourceRedefinePixels (source, readout, source->peak->xf, source->peak->yf, 1.5*radius , false);135 pmSourceRedefinePixels (source, readout, source->peak->xf, source->peak->yf, 1.5*radius); 136 136 137 137 // if we request any of these measurements, we require the radial profile … … 173 173 psLogMsg ("psphot", PS_LOG_INFO, " %d kron\n", Nkron); 174 174 175 psphotVisualShowResidualImage (readout );175 psphotVisualShowResidualImage (readout, false); 176 176 177 177 if (doPetrosian) { -
branches/eam_branches/ipp-20101205/psphot/src/psphotExtendedSourceAnalysisByObject.c
r30140 r30166 114 114 radius = PS_MAX (radius, source->pixels->numRows - source->peak->yf + source->pixels->row0); 115 115 radius = PS_MAX (radius, source->pixels->numCols - source->peak->xf + source->pixels->col0); 116 pmSourceRedefinePixels (source, readout, source->peak->xf, source->peak->yf, 1.5*radius , false);116 pmSourceRedefinePixels (source, readout, source->peak->xf, source->peak->yf, 1.5*radius); 117 117 118 118 // if we request any of these measurements, we require the radial profile -
branches/eam_branches/ipp-20101205/psphot/src/psphotRadialApertures.c
r30142 r30166 119 119 radius = PS_MAX (radius, source->pixels->numRows - source->peak->yf + source->pixels->row0); 120 120 radius = PS_MAX (radius, source->pixels->numCols - source->peak->xf + source->pixels->col0); 121 pmSourceRedefinePixels (source, readout, source->peak->xf, source->peak->yf, 1.5*radius , false);121 pmSourceRedefinePixels (source, readout, source->peak->xf, source->peak->yf, 1.5*radius); 122 122 123 123 if (!psphotRadialApertureSource (source, recipe, skynoise, maskVal, radMax, 0)) { … … 142 142 radialAperSet = source->parent->radialAper; 143 143 } 144 144 psAssert(radialAperSet, "this should be defined before calling"); 145 145 psAssert(radialAperSet->data[entry] == NULL, "why is this already defined?"); 146 146 -
branches/eam_branches/ipp-20101205/psphot/src/psphotRadiusChecks.c
r30140 r30166 77 77 source->apRadius = PSF_APERTURE; 78 78 79 bool status = pmSourceRedefinePixels (source, readout, PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], model->fitRadius , false);79 bool status = pmSourceRedefinePixels (source, readout, PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], model->fitRadius); 80 80 81 81 // set the mask to flag the excluded pixels … … 115 115 source->apRadius = PSF_APERTURE; 116 116 117 bool status = pmSourceRedefinePixels (source, readout, PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], model->fitRadius , false);117 bool status = pmSourceRedefinePixels (source, readout, PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], model->fitRadius); 118 118 119 119 // set the mask to flag the excluded pixels … … 172 172 173 173 // redefine the pixels if needed 174 pmSourceRedefinePixels (source, readout, peak->xf, peak->yf, rawRadius , false);174 pmSourceRedefinePixels (source, readout, peak->xf, peak->yf, rawRadius); 175 175 176 176 // set the mask to flag the excluded pixels … … 199 199 200 200 // redefine the pixels if needed 201 pmSourceRedefinePixels (source, readout, PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], model->fitRadius , false);201 pmSourceRedefinePixels (source, readout, PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], model->fitRadius); 202 202 203 203 // set the mask to flag the excluded pixels -
branches/eam_branches/ipp-20101205/psphot/src/psphotSourceFits.c
r29548 r30166 365 365 366 366 // copy most data from the primary source (modelEXT, blends stay NULL) 367 pmSource *newSrc = pmSourceCopy Data(source);367 pmSource *newSrc = pmSourceCopy (source); 368 368 newSrc->modelPSF = psMemIncrRefCounter (DBL->data[1]); 369 369 … … 385 385 psLogMsg ("psphot", 1, "PAR %d : %f +/- %f\n", i, source->modelPSF->params->data.F32[i], source->modelPSF->dparams->data.F32[i]); 386 386 } 387 psphotVisualShowResidualImage (readout );387 psphotVisualShowResidualImage (readout, false); 388 388 } 389 389 # endif
Note:
See TracChangeset
for help on using the changeset viewer.
