aboutsummaryrefslogtreecommitdiff
path: root/src/powder_plot.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/powder_plot.c')
-rw-r--r--src/powder_plot.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/powder_plot.c b/src/powder_plot.c
index f721d02e..d9049cc3 100644
--- a/src/powder_plot.c
+++ b/src/powder_plot.c
@@ -107,12 +107,12 @@ int main(int argc, char *argv[])
for ( x=0; x<image.width; x++ ) {
for ( y=0; y<image.height; y++ ) {
- double rx, ry, rz;
double q;
int intensity;
+ struct rvec r;
- map_position(&image, x, y, &rx, &ry, &rz);
- q = modulus(rx, ry, rz);
+ r = get_q(&image, x, y, 1, NULL, 1.0/image.lambda);
+ q = modulus(r.u, r.v, r.w);
intensity = image.data[x + image.width*y];