Changeset 39926 for trunk/psphot/src/psphotSourceStats.c
- Timestamp:
- Jan 6, 2017, 11:30:10 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
psphot/src/psphotSourceStats.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to
/branches/czw_branch/20160809 merged eligible
-
Property svn:mergeinfo
set to
-
trunk/psphot/src/psphotSourceStats.c
r37766 r39926 560 560 } 561 561 562 if (psTraceGetLevel("psphot.moments.save")) { 563 char name[64]; 564 sprintf (name, "moments.v%d.dat", i); 565 FILE *fout = fopen (name, "w"); 566 for (int j = 0; j < sources->n; j++) { 567 pmSource *source = sources->data[j]; 568 psAssert (source->moments, "force moments to exist"); 569 source->moments->nPixels = 0; 570 status = pmSourceMoments (source, 20, sigma[i], 0.0, 0.0, maskVal); 571 fprintf (fout, "%f %f | %f %f %f | %f\n", source->moments->Mx, source->moments->My, source->moments->Mxx, source->moments->Mxy, source->moments->Myy, source->moments->Sum); 572 } 573 fclose (fout); 574 } 575 562 576 // choose a grid scale that is a fixed fraction of the psf sigma^2 563 577 float PSF_CLUMP_GRID_SCALE = 0.1*PS_SQR(sigma[i]);
Note:
See TracChangeset
for help on using the changeset viewer.
