Hi Ghansham & Devanshi,
> When I click on screen, I got Lat and Lon values printed, but I also
> want the range value
> I dont know if any example code is available in visad.examples.
> Can somebody throw some light on that?
I wrote code in VisBio that does this.
StackLink.computeCursor (as an alternative to TransformLink):
I hope this helps. Sorry I don't have time this week to explain the code in
detail but if you study it you should be able to adapt it to your needs.
On Sun, May 25, 2014 at 11:07 PM, ghansham <ghansham@xxxxxxxxxxxxxxx> wrote:
> Hi Devanshi,
> You can try setting the cursorStringVector on mouse move.
> It is not pretty straight forward.
> You may have to add displayListener to the display with
> MOUSE_PRESSED_CENTER event enabled on display.
> You may get the mouse screen coordinates then you may have transform them
> to display coordinates to Spatial ScalarMap Coordinates.
> then you may have to use them to find the corresponding range value from
> the visad data object being displayed.
> It is a bit complex. I dont know if any example code is available in
> visad.examples. Can somebody throw some light on that?
> On 05/24/2014 11:30 PM, visad-request@xxxxxxxxxxxxxxxx wrote:
>> Send visad mailing list submissions to
>> To subscribe or unsubscribe via the World Wide Web, visit
>> or, via email, send a message with subject or body 'help' to
>> You can reach the person managing the list at
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of visad digest..."
>> Today's Topics:
>> 1. Display Range value on screen (Devanshi Prajapati)
>> Message: 1
>> Date: Sat, 24 May 2014 10:21:47 +0530
>> From: Devanshi Prajapati<prajapati.devanshi@xxxxxxxxx>
>> To: "visad@xxxxxxxxxxxxxxxx"<visad@xxxxxxxxxxxxxxxx>
>> Subject: [visad] Display Range value on screen
>> Content-Type: text/plain; charset="utf-8"
>> Hello all,
>> My file structure is like: ( Lat , Lon ) --> Temp.
>> And I map Temp. value to Display.RGB
>> I get a 2D image on screen.
>> When I click on screen, I got Lat and Lon values printed, but I also want
>> the range value, that is "Temp." to be displayed on screen on a mouse
>> The image must be in 2D only.
> visad mailing list
> For list information, to unsubscribe, visit: http://www.unidata.ucar.edu/