Changeset 18004
- Timestamp:
- Jun 8, 2008, 2:47:14 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotReadout.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotReadout.c
r17870 r18004 17 17 18 18 // set the photcode for this image 19 if (!psphotAddPhotcode (recipe, config, view )) {19 if (!psphotAddPhotcode (recipe, config, view, "PSPHOT.INPUT")) { 20 20 psError (PSPHOT_ERR_CONFIG, false, "trouble defining the photcode"); 21 21 return false; … … 118 118 119 119 if (0) { 120 FILE *out = fopen ("out. dat", "w");120 FILE *out = fopen ("out.pass1.dat", "w"); 121 121 122 122 for (int i = 0; i < sources->n; i++) { … … 194 194 psphotFitSourcesLinear (readout, sources, recipe, psf, TRUE); 195 195 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 196 216 pass1finish: 197 217
Note:
See TracChangeset
for help on using the changeset viewer.
