diff options
author | Thomas White <taw@bitwiz.org.uk> | 2012-01-26 17:50:39 -0800 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:44 +0100 |
commit | 21fcadcc66092b48f59acf1037ebae31538fb094 (patch) | |
tree | 1901d18f5fc1902874a07e7c254e37825aff5e7b /libcrystfel/src/mosflm.c | |
parent | c3c6ed564475df162d5c18041e330dbcf87a37dc (diff) |
Correct MOSFLM coordinate convention when reading unit cell (not when writing spot file)
Diffstat (limited to 'libcrystfel/src/mosflm.c')
-rw-r--r-- | libcrystfel/src/mosflm.c | 10 |
1 files 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); |