IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 11, 2015, 2:57:41 PM (11 years ago)
Author:
eugene
Message:

merge changes from ipp-20141224

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmPSFtryMakePSF.c

    r36858 r37811  
    4545#include "pmSourceVisual.h"
    4646
     47bool pmPSF_DataDump (char *filename, psVector *x, psVector *y, psVector *e0, psVector *e1, psVector *e2, psVector *mask);
     48
    4749/*****************************************************************************
    4850pmPSFFromPSFtry (psfTry): build a PSF model from a collection of source->modelEXT entries
     
    356358}
    357359
     360bool pmPSF_DataDump (char *filename, psVector *x, psVector *y, psVector *e0, psVector *e1, psVector *e2, psVector *mask) {
     361
     362
     363  FILE *f = fopen (filename, "w");
     364  if (!f) return false;
     365
     366  for (int i = 0; i < x->n; i++) {
     367
     368    fprintf (f, "%6.1f %6.1f : %5.2f %5.2f %5.2f : %2d\n",
     369             x->data.F32[i],
     370             y->data.F32[i],
     371             e0->data.F32[i],
     372             e1->data.F32[i],
     373             e2->data.F32[i],
     374             mask->data.U8[i]);
     375  }
     376  fclose (f);
     377  return true;
     378}
Note: See TracChangeset for help on using the changeset viewer.