Changeset 20318
- Timestamp:
- Oct 21, 2008, 6:05:38 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ppSim/src/ppSimInsertStars.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSim/src/ppSimInsertStars.c
r18011 r20318 68 68 psArray *sources = psArrayAllocEmpty (stars->n); 69 69 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 70 77 // add sources to the readout image & weight 71 78 psTrace("ppSim", 1, "Inserting %ld stars...\n", stars->n); … … 114 121 source->errMag = sqrt(Area*PS_SQR(roughNoise) + flux) / flux; 115 122 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 116 125 // insert the source flux in the image 117 126 pmSourceAddWithOffset (source, PM_MODEL_OP_FULL, 0xff, dX, dY); … … 131 140 psFree(source); // Drop reference 132 141 } 142 fclose (outfile); 133 143 134 144 // NOTE: the pmFPAfile "PPSIM.OUTPUT" points at these sources
Note:
See TracChangeset
for help on using the changeset viewer.
