IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 21, 2008, 6:05:38 PM (18 years ago)
Author:
eugene
Message:

added test output file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSim/src/ppSimInsertStars.c

    r18011 r20318  
    6868    psArray *sources = psArrayAllocEmpty (stars->n);
    6969
     70    // output filename
     71    char outname[1024];
     72    char *outroot = psMetadataLookupStr(&mdok, config->arguments, "OUTPUT");
     73    sprintf (outname, "%s.dat", outroot);
     74
     75    FILE *outfile = fopen (outname, "w");
     76
    7077    // add sources to the readout image & weight
    7178    psTrace("ppSim", 1, "Inserting %ld stars...\n", stars->n);
     
    114121        source->errMag = sqrt(Area*PS_SQR(roughNoise) + flux) / flux;
    115122
     123        fprintf (outfile, "%8.3f %8.3f  %10.2f  %7.3f %5.3f\n", star->x, star->y, star->flux, source->psfMag, source->errMag);
     124
    116125        // insert the source flux in the image
    117126        pmSourceAddWithOffset (source, PM_MODEL_OP_FULL, 0xff, dX, dY);
     
    131140        psFree(source);                 // Drop reference
    132141    }
     142    fclose (outfile);
    133143
    134144    // NOTE: the pmFPAfile "PPSIM.OUTPUT" points at these sources
Note: See TracChangeset for help on using the changeset viewer.