diff options
author | Thomas White <taw@physics.org> | 2010-02-22 10:24:35 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2010-02-22 10:25:02 +0100 |
commit | 3132451eb2a3c88202078177f84c9c8fc96372fe (patch) | |
tree | 08104e9c2df2c3a8fe98a1f97dd358fd5fc22535 /src/reflections.c | |
parent | cc0db0054d76474e55393c05806f715a0e2f6d08 (diff) |
Tidy some things up:
s convention
detector geometry
comments, help messages
Diffstat (limited to 'src/reflections.c')
-rw-r--r-- | src/reflections.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/reflections.c b/src/reflections.c index ab7738e4..c9d83710 100644 --- a/src/reflections.c +++ b/src/reflections.c @@ -45,7 +45,6 @@ void write_reflections(const char *filename, unsigned int *counts, fprintf(fh, "a %5.3f nm\n", a*1e9); fprintf(fh, "b %5.3f nm\n", b*1e9); fprintf(fh, "angle %5.3f deg\n", rad2deg(gamma)); - fprintf(fh, "scale 10\n"); } for ( h=-INDMAX; h<INDMAX; h++ ) { @@ -65,7 +64,7 @@ void write_reflections(const char *filename, unsigned int *counts, F = lookup_intensity(ref, h, k, l) / N; if ( zone_axis && (l != 0) ) continue; - s = resolution(cell, h, k, l); + s = 2.0*resolution(cell, h, k, l); /* h, k, l, I, sigma(I), s */ fprintf(fh, "%3i %3i %3i %f %f %f\n", h, k, l, F, 0.0, s/1.0e9); |