comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: TVRDC
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: TVRDC [message #1788] Thu, 27 January 1994 02:48 Go to next message
stl is currently offline  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 Go to previous message
sterner is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: TVRDC
Next Topic: Moving geographic data to different grids

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:37:59 PDT 2025

Total time taken to generate the page: 0.00509 seconds