Changeset 30140
- Timestamp:
- Dec 21, 2010, 2:58:29 PM (15 years ago)
- Location:
- branches/eam_branches/ipp-20101205/psphot/src
- Files:
-
- 12 edited
-
psphotExtendedSourceAnalysis.c (modified) (1 diff)
-
psphotExtendedSourceAnalysisByObject.c (modified) (1 diff)
-
psphotFitSourcesLinear.c (modified) (1 diff)
-
psphotFitSourcesLinearStack.c (modified) (1 diff)
-
psphotMakePSFReadout.c (modified) (1 diff)
-
psphotRadialApertures.c (modified) (1 diff)
-
psphotRadialAperturesByObject.c (modified) (1 diff)
-
psphotRadiusChecks.c (modified) (4 diffs)
-
psphotReadout.c (modified) (1 diff)
-
psphotReadoutFindPSF.c (modified) (1 diff)
-
psphotStackMatchPSFsUtils.c (modified) (1 diff)
-
psphotVisual.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20101205/psphot/src/psphotExtendedSourceAnalysis.c
r29936 r30140 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 );135 pmSourceRedefinePixels (source, readout, source->peak->xf, source->peak->yf, 1.5*radius, false); 136 136 137 137 // if we request any of these measurements, we require the radial profile -
branches/eam_branches/ipp-20101205/psphot/src/psphotExtendedSourceAnalysisByObject.c
r30101 r30140 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 );116 pmSourceRedefinePixels (source, readout, source->peak->xf, source->peak->yf, 1.5*radius, false); 117 117 118 118 // if we request any of these measurements, we require the radial profile -
branches/eam_branches/ipp-20101205/psphot/src/psphotFitSourcesLinear.c
r29936 r30140 297 297 psLogMsg ("psphot.ensemble", PS_LOG_INFO, "measure ensemble of PSFs: %f sec\n", psTimerMark ("psphot.linear")); 298 298 299 psphotVisualShowImage (readout); 299 300 psphotVisualShowResidualImage (readout); 300 301 psphotVisualPlotChisq (sources); -
branches/eam_branches/ipp-20101205/psphot/src/psphotFitSourcesLinearStack.c
r29548 r30140 176 176 177 177 psLogMsg ("psphot.ensemble", PS_LOG_INFO, "measure ensemble of PSFs: %f sec\n", psTimerMark ("psphot.linear")); 178 179 178 return true; 180 179 } -
branches/eam_branches/ipp-20101205/psphot/src/psphotMakePSFReadout.c
r29936 r30140 60 60 // Use bright stellar objects to measure PSF. If we do not have enough stars to generate 61 61 // the PSF, build one from the SEEING guess and model class 62 if (!psphotChoosePSF (config, view, filerule )) {62 if (!psphotChoosePSF (config, view, filerule, true)) { 63 63 psLogMsg ("psphot", 3, "failure to construct a psf model"); 64 64 return psphotReadoutCleanup (config, view, filerule); -
branches/eam_branches/ipp-20101205/psphot/src/psphotRadialApertures.c
r30101 r30140 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 );121 pmSourceRedefinePixels (source, readout, source->peak->xf, source->peak->yf, 1.5*radius, false); 122 122 123 123 if (!psphotRadialApertureSource (source, recipe, skynoise, maskVal, radMax, 0)) { -
branches/eam_branches/ipp-20101205/psphot/src/psphotRadialAperturesByObject.c
r30101 r30140 138 138 // radius = PS_MAX (radius, source->pixels->numRows - source->peak->yf + source->pixels->row0); 139 139 // radius = PS_MAX (radius, source->pixels->numCols - source->peak->xf + source->pixels->col0); 140 pmSourceRedefinePixels (source, readout, source->peak->xf, source->peak->yf, outerRadius + 2 );140 pmSourceRedefinePixels (source, readout, source->peak->xf, source->peak->yf, outerRadius + 2, false); 141 141 142 142 if (!psphotRadialApertureSource (source, recipe, skynoise, maskVal, radMax, nMatchedPSF)) { -
branches/eam_branches/ipp-20101205/psphot/src/psphotRadiusChecks.c
r29936 r30140 77 77 source->apRadius = PSF_APERTURE; 78 78 79 bool status = pmSourceRedefinePixels (source, readout, PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], model->fitRadius );79 bool status = pmSourceRedefinePixels (source, readout, PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], model->fitRadius, false); 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 );117 bool status = pmSourceRedefinePixels (source, readout, PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], model->fitRadius, false); 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 );174 pmSourceRedefinePixels (source, readout, peak->xf, peak->yf, rawRadius, false); 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 );201 pmSourceRedefinePixels (source, readout, PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], model->fitRadius, false); 202 202 203 203 // set the mask to flag the excluded pixels -
branches/eam_branches/ipp-20101205/psphot/src/psphotReadout.c
r29936 r30140 112 112 // use bright stellar objects to measure PSF if we were supplied a PSF for any input file, 113 113 // this step is skipped 114 if (!psphotChoosePSF (config, view, filerule )) { // pass 1114 if (!psphotChoosePSF (config, view, filerule, true)) { // pass 1 115 115 psLogMsg ("psphot", 3, "failure to construct a psf model"); 116 116 return psphotReadoutCleanup (config, view, filerule); -
branches/eam_branches/ipp-20101205/psphot/src/psphotReadoutFindPSF.c
r29936 r30140 49 49 } 50 50 51 if (!psphotChoosePSF(config, view, filerule )) {51 if (!psphotChoosePSF(config, view, filerule, true)) { 52 52 psError(PSPHOT_ERR_PSF, false, "Failed to construct a psf model"); 53 53 return psphotReadoutCleanup (config, view, filerule); -
branches/eam_branches/ipp-20101205/psphot/src/psphotStackMatchPSFsUtils.c
r29548 r30140 383 383 goto escape; 384 384 } 385 386 // save the PSF on the new readout->analysis: 387 // if (!psMetadataAddPtr (readoutOut->analysis, PS_LIST_TAIL, "PSPHOT.PSF", PS_META_REPLACE | PS_DATA_UNKNOWN, "psphot psf model", options->psf)) { 388 // psError (PSPHOT_ERR_UNKNOWN, false, "problem saving sources on readout"); 389 // return false; 390 // } 385 391 386 392 // dumpImage(readoutOut, readoutSrc, index, "conv"); -
branches/eam_branches/ipp-20101205/psphot/src/psphotVisual.c
r29548 r30140 2408 2408 if (myKapa == -1) return false; 2409 2409 2410 psphotVisualScaleImage (myKapa, readout->image, readout->mask, "resid", 1); 2410 psphotVisualScaleImage (myKapa, readout->variance, readout->mask, "variance", 1); 2411 psphotVisualScaleImage (myKapa, readout->image, readout->mask, "resid", 0); 2411 2412 2412 2413 pmVisualAskUser(NULL);
Note:
See TracChangeset
for help on using the changeset viewer.
