Changeset 10880 for trunk/psastro/src/psastroLuminosityFunction.c
- Timestamp:
- Jan 2, 2007, 3:26:52 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroLuminosityFunction.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroLuminosityFunction.c
r10855 r10880 68 68 // exclude bins with no stars 69 69 // exclude points after the peak with N < 0.8*peak 70 FILE *f = fopen ("psastro.dat", "w");71 70 int n = 0; 72 71 for (int i = 0; i < nMags->n; i++) { … … 75 74 lnMag->data.F32[n] = log10 (nMags->data.F32[i]); 76 75 Mag->data.F32[n] = mMin + (i + 0.5)*dMag; 77 fprintf (f, "%d %f %.0f %f\n", n, Mag->data.F32[n], nMags->data.F32[i], lnMag->data.F32[n]);78 76 n++; 79 77 } 80 fclose (f);81 78 lnMag->n = n; 82 79 Mag->n = n;
Note:
See TracChangeset
for help on using the changeset viewer.
