From c3dd8b071ce4d7c489f9f1bbf8bfa80870ff7141 Mon Sep 17 00:00:00 2001 From: Chuck Date: Wed, 20 Mar 2013 08:25:00 +0100 Subject: fixed error in solid angle calculation --- libcrystfel/src/detector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libcrystfel/src/detector.c') diff --git a/libcrystfel/src/detector.c b/libcrystfel/src/detector.c index 41ebcc9a..37328e5f 100644 --- a/libcrystfel/src/detector.c +++ b/libcrystfel/src/detector.c @@ -365,7 +365,7 @@ void record_image(struct image *image, int do_poisson) ys = (x-p->min_fs)*p->fsy + (y-p->min_ss)*p->ssy; rx = (xs + p->cnx) / p->res; ry = (ys + p->cny) / p->res; - dsq = sqrt(pow(rx, 2.0) + pow(ry, 2.0)); + dsq = pow(rx, 2.0) + pow(ry, 2.0); /* Projected area of pixel divided by distance squared */ sa = proj_area / (dsq + Lsq); -- cgit v1.2.3