aboutsummaryrefslogtreecommitdiff
path: root/src/index.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-02-17 10:53:14 +0100
committerThomas White <taw@physics.org>2010-02-17 10:53:14 +0100
commitae76664c17533d29555aeef41b7534c78407825f (patch)
tree27ff2d899e8cac27df8ca73c818e09d8b28d0557 /src/index.c
parent8ef8fa59cbd8afac2375c5dbb1acc524ac322fbc (diff)
Remove fmode stuff
Let's not pretend we can really do this.
Diffstat (limited to 'src/index.c')
-rw-r--r--src/index.c25
1 files changed, 5 insertions, 20 deletions
diff --git a/src/index.c b/src/index.c
index e9f5cf44..4e8460f6 100644
--- a/src/index.c
+++ b/src/index.c
@@ -57,26 +57,11 @@ int map_position(struct image *image, double dx, double dy,
return 0;
}
- if ( image->fmode == FORMULATION_CLEN ) {
-
- /* Convert pixels to metres */
- x /= image->det.panels[p].res;
- y /= image->det.panels[p].res; /* Convert pixels to metres */
- d = sqrt((x*x) + (y*y));
- twotheta = atan2(d, image->det.panels[p].clen);
-
- } else if (image->fmode == FORMULATION_PIXELSIZE ) {
-
- /* Convert pixels to metres^-1 */
- x *= image->pixel_size;
- y *= image->pixel_size; /* Convert pixels to metres^-1 */
- d = sqrt((x*x) + (y*y));
- twotheta = atan2(d, k);
-
- } else {
- ERROR("Unrecognised formulation mode in mapping_scale.\n");
- return -1;
- }
+ /* Convert pixels to metres */
+ x /= image->det.panels[p].res;
+ y /= image->det.panels[p].res; /* Convert pixels to metres */
+ d = sqrt((x*x) + (y*y));
+ twotheta = atan2(d, image->det.panels[p].clen);
psi = atan2(y, x);