From 21fcadcc66092b48f59acf1037ebae31538fb094 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 26 Jan 2012 17:50:39 -0800 Subject: Correct MOSFLM coordinate convention when reading unit cell (not when writing spot file) --- libcrystfel/src/mosflm.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libcrystfel/src/mosflm.c b/libcrystfel/src/mosflm.c index 5dcf4444..624d07d5 100644 --- a/libcrystfel/src/mosflm.c +++ b/libcrystfel/src/mosflm.c @@ -140,9 +140,9 @@ static int read_newmat(const char *filename, struct image *image) image->candidate_cells[0] = cell_new(); cell_set_reciprocal(image->candidate_cells[0], - asz*c, asy*c, asx*c, - bsz*c, bsy*c, bsx*c, - csz*c, csy*c, csx*c); + asz*c, -asx*c, asy*c, + bsz*c, -bsx*c, bsy*c, + csz*c, -csx*c, csy*c); image->ncells = 1; @@ -190,8 +190,8 @@ static void write_spt(struct image *image, const char *filename) rx = xs + p->cnx; ry = ys + p->cny; - x = ry*pix*fclen/p->clen/1000.0; - y = -rx*pix*fclen/p->clen/1000.0; + x = rx*pix*fclen/p->clen/1000.0; + y = ry*pix*fclen/p->clen/1000.0; fprintf(fh, "%10.2f %10.2f %10.2f %10.2f %10.2f %10.2f\n", x, y, 0.0, 0.0, 1000.0, 10.0); -- cgit v1.2.3