IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18004 for trunk/psphot/src


Ignore:
Timestamp:
Jun 8, 2008, 2:47:14 PM (18 years ago)
Author:
eugene
Message:

some temporary test outputs

File:
1 edited

Legend:

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

    r17870 r18004  
    1717
    1818    // set the photcode for this image
    19     if (!psphotAddPhotcode (recipe, config, view)) {
     19    if (!psphotAddPhotcode (recipe, config, view, "PSPHOT.INPUT")) {
    2020        psError (PSPHOT_ERR_CONFIG, false, "trouble defining the photcode");
    2121        return false;
     
    118118
    119119    if (0) {
    120         FILE *out = fopen ("out.dat", "w");
     120        FILE *out = fopen ("out.pass1.dat", "w");
    121121       
    122122        for (int i = 0; i < sources->n; i++) {
     
    194194    psphotFitSourcesLinear (readout, sources, recipe, psf, TRUE);
    195195
     196    if (0) {
     197        FILE *out = fopen ("out.pass2.dat", "w");
     198       
     199        for (int i = 0; i < sources->n; i++) {
     200            pmSource *source = sources->data[i];
     201            if (!source) continue;
     202            pmPeak *peak = source->peak;
     203            if (!peak) continue;
     204            pmModel *model = source->modelPSF;
     205            if (!model) continue;
     206            if (!model->params) continue;
     207           
     208            fprintf (out, "%d %f %f  %f %f  %f %f\n",
     209                     i, peak->xf, peak->yf, peak->flux, peak->SN,
     210                     model->params->data.F32[PM_PAR_I0],
     211                     model->dparams->data.F32[PM_PAR_I0]);
     212        }
     213        fclose (out);
     214    }
     215
    196216pass1finish:
    197217
Note: See TracChangeset for help on using the changeset viewer.