Re: TVRDC [message #1788] |
Thu, 27 January 1994 02:48  |
stl
Messages: 70 Registered: February 1994
|
Member |
|
|
In article <1994Jan26.234406.61200@yuma> dean%phobos.dnet@sirius.cira.colostate.edu writes:
>
> I am using TVRDC, X, Y, /DEVICE to dump pixel information from the
> graphic window. How would I use TVRDC to dump lat/long information
> instead of device coordinates?
>
> Kelly
Not really familiar with tvrdc, but it should be as simple as using the
keyword /DATA instead of /DEVICE. If this doesn't work, do what you are
doing and feed the info into convert_coord().
hope this helps
-stephen Strebel
SMA Zuerich
|
|
|
Re: TVRDC [message #1789 is a reply to message #1788] |
Thu, 27 January 1994 05:46  |
sterner
Messages: 106 Registered: February 1991
|
Senior Member |
|
|
dean@phobos.cira.colostate.edu writes:
> I am using TVRDC, X, Y, /DEVICE to dump pixel information from the
> graphic window. How would I use TVRDC to dump lat/long information
> instead of device coordinates?
TVRDC is not documented (not for recent versions anyway). I suspect
it is probebly now out of fashion and perhaps should not be used.
Use the CURSOR routine instead. Here is an example that displays
map coordinates:
map_set,/cont,/grid & !mouse.button=0
while !mouse.button eq 0 do begin &$
cursor,x,y,/data,/change & print,x,y & endwhile
The mouse button flag must be cleared or the while loop will exit
immediately the second time around. !err could be used instead
of !mouse.button but its not very descriptive in a routine and
probably should be avoided.
In the above example x is the longitude of the cursor and y is the
latitude. Longitude is negative in the western hemisphere.
Ray Sterner sterner@tesla.jhuapl.edu
Johns Hopkins University North latitude 39.16 degrees.
Applied Physics Laboratory West longitude 76.90 degrees.
Laurel, MD 20723-6099
|
|
|