IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5751


Ignore:
Timestamp:
Dec 7, 2005, 5:26:53 PM (21 years ago)
Author:
magnier
Message:

fixed weird indent problems with try. these may get broken on cvs checkin..

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_rel9_b0/psModules/src/objects/pmPSFtry.c

    r5725 r5751  
    378378                                            ->mask, PSFTRY_MASK_ALL, try
    379379                                                ->metric, NULL, rflux);
     380    fprintf (stderr, "fit stats: %f +/- %f\n", stats->sampleMedian, stats->sampleStdev);
    380381
    381382    try
     
    385386    try
    386387        ->psf->skyBias = poly->coeff[1] / (M_PI * PS_SQR(RADIUS));
     388
     389    fprintf (stderr, "*******************************************************************************\n");
     390
     391    FILE *f;
     392    f = fopen ("apresid.dat", "w");
     393    if (f == NULL)
     394        psAbort ("pmPSFtry", "can't open output file");
     395
     396    for (int i = 0; i < try
     397                ->sources->n; i++) {
     398            fprintf (f, "%3d %8.4f %12.5e %8.4f %3d\n", i, try
     399                         ->fitMag->data.F64[i], rflux->data.F64[i], try
     400                             ->metric->data.F64[i], try
     401                                 ->mask->data.U8[i]);
     402        }
     403    fclose (f);
    387404
    388405    psFree (rflux);
Note: See TracChangeset for help on using the changeset viewer.