aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/lcls-june.geom4
-rw-r--r--src/detector.c13
2 files changed, 13 insertions, 4 deletions
diff --git a/examples/lcls-june.geom b/examples/lcls-june.geom
index 307733b5..f4ac79af 100644
--- a/examples/lcls-june.geom
+++ b/examples/lcls-june.geom
@@ -5,7 +5,7 @@ n_panels = 2
0/max_x = 1023
0/min_y = 0
0/max_y = 1023
-0/cx = 870.0
+0/cx = 461.0
0/cy = 512.0
0/clen = 66.0e-3
0/res = 13333.3 ; 75 micron pixel size
@@ -15,7 +15,7 @@ n_panels = 2
1/max_x = 511
1/min_y = 0
1/max_y = 1023
-1/cx = 461.0
+1/cx = 870.0
1/cy = 512.0
1/clen = 69.0e-3
1/res = 13333.3 ; 75 micron pixel size
diff --git a/src/detector.c b/src/detector.c
index d0b03877..d4744ffd 100644
--- a/src/detector.c
+++ b/src/detector.c
@@ -136,9 +136,18 @@ void record_image(struct image *image, int do_poisson)
progress_bar(x, image->width-1, "Post-processing");
}
- STATUS("Max 2theta = %.2f deg, min d = %.2f nm (halve this to get the"
- " voxel size for a synthesis)\n",
+ 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",
+ 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",
+ 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");
}