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

Home » Public Forums » archive » Re: cursor command
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: cursor command [message #83790 is a reply to message #83789] Tue, 02 April 2013 11:42 Go to previous messageGo to previous message
gpeterso is currently offline  gpeterso
Messages: 22
Registered: February 2013
Junior Member
On Tuesday, April 2, 2013 11:04:48 AM UTC-7, rr...@stsci.edu wrote:
> On Tuesday, April 2, 2013 1:57:36 PM UTC-4, gpet...@ucsc.edu wrote:
>
>> On Tuesday, April 2, 2013 10:04:49 AM UTC-7, gpet...@ucsc.edu wrote:
>
>>
>
>>> Can you use the cursor command on a 2d contour map?
>
>>
>
>>
>
>>
>
>> Could anyone explain how this procedure works.I am not really finding anything on the internet.
>
>
>
> Cursor is a way of grabbing an (x,y) coordinate pair from the mouse action. You have options on when (x,y) is returned, for example is it returned when you press the mouse button, when you release the button, or move the mouse, etc. (as set by the wait variable). The (x,y) pair will be returned in whatever units you like (whether normal, device, or data), which is useful depending on your purpose.
>
>
>
> http://www.exelisvis.com/docs/CURSOR_Procedure.html
>
>
>
> As for your question about contour. I assume you're using the contour procedure (as opposed to the contour function). In which case, what you do next depends on what you want from the (x,y) pair --- and I can't answer that for you. Do you want the value of the contour plot? or do you want the position of the plot (in the window)? The answer to these questions (and other related ones), will dictate how you set the wait variable and the units you use (though you can change the units using convert_coords afterward, should you need all the units for some reason).
>
>
>
> Good luck,
>
> Russell

openr, lun, 'arial.txt',/get_lun

data=dindgen(824,914)
readf, lun, data
close,lun


rotatedata=ROTATE(data,2)

window, 1, retain=2

While (!mouse.button Ne 4) DO BEGIN
cursor, data, /device

contour, rotatedata
ENDWHILE

end


The error I receive is: CURSOR: Incorrect number of arguments.

I am not sure what to do with this.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: map_do_segments: map file: plow not found
Next Topic: How to parse the output of restore, filename, /ver

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

Current Time: Fri Oct 10 15:32:47 PDT 2025

Total time taken to generate the page: 0.39971 seconds