aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-09-30 15:26:33 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:00 +0100
commit9739618f87cf9ee6a464b5adeeb6fbdf61bb022a (patch)
tree885c00562e3fb898735eacc2906a2dfe10654d33
parentece941d1de958066e731bf1b2df45e1569e5a763 (diff)
Show values in the middle of the sides
-rw-r--r--src/detector.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/detector.c b/src/detector.c
index 86dbbef2..c5665ab2 100644
--- a/src/detector.c
+++ b/src/detector.c
@@ -164,12 +164,12 @@ void record_image(struct image *image, int do_poisson)
STATUS("Max 2theta = %.2f deg, min d = %.2f nm\n",
rad2deg(max_tt), (image->lambda/(2.0*sin(max_tt/2.0)))/1e-9);
- double tt_side = image->twotheta[512+image->width*0];
- STATUS("At 512,0: %.2f deg, min d = %.2f nm\n",
+ double tt_side = image->twotheta[(image->width/2)+image->width*0];
+ STATUS("At middle of bottom edge: %.2f deg, min d = %.2f nm\n",
rad2deg(tt_side), (image->lambda/(2.0*sin(tt_side/2.0)))/1e-9);
- tt_side = image->twotheta[0+image->width*512];
- STATUS("At 0,512: %.2f deg, min d = %.2f nm\n",
+ tt_side = image->twotheta[0+image->width*(image->height/2)];
+ STATUS("At middle of left edge: %.2f deg, min d = %.2f nm\n",
rad2deg(tt_side), (image->lambda/(2.0*sin(tt_side/2.0)))/1e-9);
STATUS("Halve the d values to get the voxel size for a synthesis.\n");