IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 6, 2017, 11:30:10 AM (10 years ago)
Author:
eugene
Message:

merging changes from czw dev branch (compare with r39924)

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/psphot/src/psphotSourceStats.c

    r37766 r39926  
    560560        }
    561561
     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
    562576        // choose a grid scale that is a fixed fraction of the psf sigma^2
    563577        float PSF_CLUMP_GRID_SCALE = 0.1*PS_SQR(sigma[i]);
Note: See TracChangeset for help on using the changeset viewer.