aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-11-26 17:32:17 +0100
committerThomas White <taw@physics.org>2014-11-26 17:32:17 +0100
commit9473a0cddb6c0088985e4e148037450398183946 (patch)
tree9a3de7720fa54224e050dfa843ae331efc99fe0d /libcrystfel/src
parentde9ffedf34b3bb5ab184e0f0598ca7f06a242da2 (diff)
Show panel name and correct coordinates in int-diag
Diffstat (limited to 'libcrystfel/src')
-rw-r--r--libcrystfel/src/integration.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libcrystfel/src/integration.c b/libcrystfel/src/integration.c
index f352c0c6..42f96020 100644
--- a/libcrystfel/src/integration.c
+++ b/libcrystfel/src/integration.c
@@ -358,8 +358,11 @@ static void show_peak_box(struct intcontext *ic, struct peak_box *bx,
get_indices(bx->refl, &h, &k, &l);
get_detector_pos(bx->refl, &fs, &ss);
- printw("Indices %i %i %i\nPosition fs = %.1f, ss = %.1f\n\n",
- h, k, l, fs, ss);
+ /* Convert coordinates to match arrangement of panels in HDF5 file */
+ fs = fs - bx->p->min_fs + bx->p->orig_min_fs;
+ ss = ss - bx->p->min_ss + bx->p->orig_min_ss;
+ printw("Indices %i %i %i\nPanel %s\nPosition fs = %.1f, ss = %.1f\n\n",
+ h, k, l, bx->p->name, fs, ss);
printw("Pixel values:\n");
for ( q=ic->w-1; q>=0; q-- ) {