Changeset 36623 for trunk/psphot/src
- Timestamp:
- Mar 31, 2014, 2:36:01 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
- 1 copied
-
. (modified) (1 prop)
-
psphot/src (modified) (1 prop)
-
psphot/src/Makefile.am (modified) (1 diff)
-
psphot/src/psphot.h (modified) (1 diff)
-
psphot/src/psphotApResid.c (modified) (2 diffs)
-
psphot/src/psphotChoosePSF.c (modified) (1 diff)
-
psphot/src/psphotLensing.c (copied) (copied from branches/eam_branches/ipp-20140226/psphot/src/psphotLensing.c )
-
psphot/src/psphotReadout.c (modified) (2 diffs)
-
psphot/src/psphotStackImageLoop.c (modified) (1 prop)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20140226 (added) merged: 36561,36563,36619-36622
- Property svn:mergeinfo changed
-
trunk/psphot/src
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20140226/psphot/src (added) merged: 36619,36621-36622
- Property svn:mergeinfo changed
-
trunk/psphot/src/Makefile.am
r36441 r36623 208 208 psphotMakeGrowthCurve.c \ 209 209 psphotMagnitudes.c \ 210 psphotLensing.c \ 210 211 psphotSetMaskBits.c \ 211 212 psphotSkyReplace.c \ -
trunk/psphot/src/psphot.h
r36441 r36623 144 144 bool psphotMagnitudesReadout(pmConfig *config, psMetadata *recipe, const pmFPAview *view, pmReadout *readout, psArray *sources, pmPSF *psf); 145 145 bool psphotMagnitudes_Threaded (psThreadJob *job); 146 147 bool psphotLensing (pmConfig *config, const pmFPAview *view, const char *filerule); 148 bool psphotLensingReadout(pmConfig *config, const pmFPAview *view, const char *filerule, int index, psMetadata *recipe); 149 bool psphotLensingPSFtrendsReadout(pmConfig *config, const pmFPAview *view, const char *filerule, int index, psMetadata *recipe); 146 150 147 151 bool psphotEfficiency (pmConfig *config, const pmFPAview *view, const char *filerule); -
trunk/psphot/src/psphotApResid.c
r34404 r36623 214 214 215 215 // XXX make this user-configurable? 216 if (source->psfMagErr > 0.0 1) continue;216 if (source->psfMagErr > 0.03) continue; 217 217 218 218 // aperture residual for this source … … 267 267 268 268 // set the max order (0 = constant) which the number of psf stars can support: 269 // rule of thumb: require 3 stars per 'cell' (order+1)^2269 // we require only 3 stars for n = 0, increase stars / cell for higher order 270 270 int MaxOrderForStars = 0; 271 if (Npsf >= 12) MaxOrderForStars = 1; // 4 cells 272 if (Npsf >= 27) MaxOrderForStars = 2; // 9 cells 273 if (Npsf >= 48) MaxOrderForStars = 3; // 16 cells 274 if (Npsf > 75) MaxOrderForStars = 4; // 25 cells 271 if (Npsf >= 16) MaxOrderForStars = 1; // 4 cells 272 if (Npsf >= 54) MaxOrderForStars = 2; // 9 cells 273 if (Npsf >= 128) MaxOrderForStars = 3; // 16 cells 274 if (Npsf >= 300) MaxOrderForStars = 4; // 25 cells 275 if (Npsf > 576) MaxOrderForStars = 5; // 36 cells 275 276 276 277 pmTrend2DMode mode = PM_TREND_MAP; -
trunk/psphot/src/psphotChoosePSF.c
r35769 r36623 399 399 char *modelName = pmModelClassGetName (psf->type); 400 400 psLogMsg ("psphot.pspsf", PS_LOG_WARN, "select psf model: %f sec\n", psTimerMark ("psphot.choose.psf")); 401 psLogMsg ("psphot.pspsf", PS_LOG_INFO, "psf model %s, ApResid: %f +/- %f \n", modelName, psf->ApResid, psf->dApResid);401 psLogMsg ("psphot.pspsf", PS_LOG_INFO, "psf model %s, ApResid: %f +/- %f (%d x %d model)\n", modelName, psf->ApResid, psf->dApResid, psf->trendNx, psf->trendNy); 402 402 403 403 psFree (options); -
trunk/psphot/src/psphotReadout.c
r36375 r36623 340 340 // calculate source magnitudes 341 341 if (!psphotMagnitudes(config, view, filerule)) { // pass 1 (detections->allSources) 342 psErrorStackPrint(stderr, "Unable to do magnitudes.");342 psErrorStackPrint(stderr, "Unable to do magnitudes."); 343 343 psErrorClear(); 344 344 } 345 346 // calculate lensing parameters 347 if (!psphotLensing(config, view, filerule)) { 348 psErrorStackPrint(stderr, "Unable to do lensing parameters."); 349 psErrorClear(); 350 } 351 345 352 if (!psphotEfficiency(config, view, filerule)) { // pass 1 346 353 psErrorStackPrint(stderr, "Unable to determine detection efficiencies from fake sources"); … … 353 360 // replace background in residual image 354 361 if (!psphotSkyReplace (config, view, filerule)) { // pass 1 355 psErrorStackPrint(stderr, "Unable to replace sky");356 psErrorClear();362 psErrorStackPrint(stderr, "Unable to replace sky"); 363 psErrorClear(); 357 364 } 358 365 359 366 // drop the references to the image pixels held by each source 360 367 if (!psphotSourceFreePixels (config, view, filerule)) { // pass 1 361 psErrorStackPrint(stderr, "Unable to free source pixels");362 psErrorClear();368 psErrorStackPrint(stderr, "Unable to free source pixels"); 369 psErrorClear(); 363 370 } 364 371 -
trunk/psphot/src/psphotStackImageLoop.c
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20140226/psphot/src/psphotStackImageLoop.c (added) merged: 36622
- Property svn:mergeinfo changed
Note:
See TracChangeset
for help on using the changeset viewer.
