IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 30, 2008, 4:09:46 PM (18 years ago)
Author:
eugene
Message:

fix errors in calculation of sig image; API change: sig image is now actual S/N2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotReadout.c

    r17828 r17870  
    117117    psphotFitSourcesLinear (readout, sources, recipe, psf, FALSE);
    118118
     119    if (0) {
     120        FILE *out = fopen ("out.dat", "w");
     121       
     122        for (int i = 0; i < sources->n; i++) {
     123            pmSource *source = sources->data[i];
     124            if (!source) continue;
     125            pmPeak *peak = source->peak;
     126            if (!peak) continue;
     127            pmModel *model = source->modelPSF;
     128            if (!model) continue;
     129            if (!model->params) continue;
     130           
     131            fprintf (out, "%d %f %f  %f %f  %f %f\n",
     132                     i, peak->xf, peak->yf, peak->flux, peak->SN,
     133                     model->params->data.F32[PM_PAR_I0],
     134                     model->dparams->data.F32[PM_PAR_I0]);
     135        }
     136        fclose (out);
     137    }
     138
    119139    // identify CRs and extended sources
    120140    psphotSourceSize (readout, sources, recipe, 0);
Note: See TracChangeset for help on using the changeset viewer.