aboutsummaryrefslogtreecommitdiff
path: root/src/reflections.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-09-22 17:35:37 +0200
committerThomas White <taw@physics.org>2012-02-22 15:26:59 +0100
commitb80016b05e7583dee6ae3e8db0d1a7036b1d09be (patch)
tree7d9fd249bb751e11cd92d1aa69778b91ebc9b0ea /src/reflections.c
parentc68ee0a5c446023b7f550d723c8f3e8b109b9bc5 (diff)
Improve error estimate
Diffstat (limited to 'src/reflections.c')
-rw-r--r--src/reflections.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/reflections.c b/src/reflections.c
index 4c3cf527..7e850320 100644
--- a/src/reflections.c
+++ b/src/reflections.c
@@ -78,7 +78,7 @@ void write_reflections(const char *filename, ReflItemList *items,
}
if ( intensity > 0.0 ) {
- sigma = sqrt(intensity);
+ sigma = 179.0 * sqrt(intensity/179.0);
} else {
sigma = 0.0;
}
@@ -88,6 +88,7 @@ void write_reflections(const char *filename, ReflItemList *items,
h, k, l, intensity, ph, sigma, s/1.0e9, N);
}
+ STATUS("Warning: Errors are only remotely valid for 1/16 gain.\n");
fclose(fh);
}