subroutine event_display_xpixels_to_lab(xpixel, ypixel, x,y,z) c c This routine takes x,y for a display pixel and returns telescope coordinates c for the x view. c Keep in mind that X11 uses increasing x to move to the right, increasing c y to move down on the screen. c c c George Gollin, g-gollin@uiuc.edu, 1999. c c #include "event_display.inc" c c ************************************************************************* c x=(pixel_at_x_0 - ypixel) / pixels_per_x . + telescope_min_x c y=0. c z=(xpixel - pixel_at_zx_0) / pixels_per_zx . + telescope_min_zx c c return end