aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2012-10-18 22:31:53 +0200
committerThomas White <taw@physics.org>2012-10-19 01:15:34 +0200
commitb941277992bbb8f24cab48df263b25fd6aafd274 (patch)
tree254cfc2ad59440522edad8a064acdd7f24cfcf52
parent295810e12275c6bc1ee181755823d2eb45a1b09c (diff)
Switch off INVERTX for MOSFLM
-rw-r--r--libcrystfel/src/mosflm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libcrystfel/src/mosflm.c b/libcrystfel/src/mosflm.c
index cbeb2585..2677429a 100644
--- a/libcrystfel/src/mosflm.c
+++ b/libcrystfel/src/mosflm.c
@@ -159,9 +159,9 @@ static int read_newmat(const char *filename, struct image *image)
/* No idea why the cell comes out in this strange coordinate system */
cell_set_reciprocal(image->candidate_cells[0],
- asy*c, -asz*c, asx*c,
- bsy*c, -bsz*c, bsx*c,
- csy*c, -csz*c, csx*c);
+ -asy*c, -asz*c, asx*c,
+ -bsy*c, -bsz*c, bsx*c,
+ -csy*c, -csz*c, csx*c);
image->ncells = 1;
@@ -184,7 +184,7 @@ static void write_spt(struct image *image, const char *filename)
}
fprintf(fh, "%10d %10d %10.8f %10.6f %10.6f\n", 1, 1, 0.0, 1.0, 0.0);
- fprintf(fh, "%10d %10d\n", 1, 1);
+ fprintf(fh, "%10d %10d\n", 0, 1);
fprintf(fh, "%10.5f %10.5f\n", 0.0, 0.0);
n = image_feature_count(image->features);
@@ -205,7 +205,7 @@ static void write_spt(struct image *image, const char *filename)
rx = (xs + p->cnx) / p->res;
ry = (ys + p->cny) / p->res;
- x = rx*fclen/p->clen;
+ x = -rx*fclen/p->clen;
y = ry*fclen/p->clen; /* Peak positions in m */
fprintf(fh, "%10.2f %10.2f %10.2f %10.2f %10.2f %10.2f\n",