Debian Codegraph @

gui/XIrspec/proc/irsgcoord.prg

raw
1 ! @(#)irsgcoord.prg 19.1 (ES0-DMD) 02/25/03 13:47:33
2 ! @(#)irsgcoord.prg 19.1 (ESO-ASD) 02/25/03 13:47:33
3 !+++++++++++++++++++++++++++++++++++++++++++++++++++++++
4 !.COPYRIGHT (C) 1993 European Southern Observatory
5 !.IDENT irsgcoord.prg
6 !.AUTHORS Cristian Levin (ESO/La Silla)
7 !.KEYWORDS XIrspec
8 !.PURPOSE
9 ! Get coordinates from the display window.
10 ! Command:
11 ! @g irsgcoord number_of_coords
12 !.VERSION 1.0 Package Creation 17-MAR-1993
13 !-------------------------------------------------------
14 !
15 define/par p1 1 N "Number of coordinates : "
16 define/par p2 ? C "Output table : "
17 define/maxpar 2
18 !
19 if 'dazdevr(10)' .eq. -1 then
20 write/out "*** Please create the display window and load an image ***"
21 return/exit
22 endif
23 !
24 get/curs 'p2' ? ? 'p1',1
25 comp/tab 'p2' :y_wcoord = 1.0 + (:y_coord - '{idimemc},start(2)') / '{idimemc},step(2)'