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

Home » Public Forums » archive » map_proj_inverse question
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
map_proj_inverse question [message #74388] Wed, 12 January 2011 09:59
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
Hi folks,

I'm setting a projection using MAP_SET (IDL 7.1), after that I want to
retrieve the lat/lon values of the mouse position.
What I'm doing is the following :

1) I retrieve the mouse position, using event.X and event.Y
2) After that, I normalize the X,Y position, taking in account the
UV_BOX of the map structure

uv_box_lenght=[!map.UV_BOX[2]-!map.UV_BOX[0],!map.UV_BOX[3]- !
map.UV_BOX[1]]

X=event.X/dim[0]*uv_box_lenght[0] + uv_box_lenght[0]
Y=event.Y/dim[1]*uv_box_lenght[1] + uv_box_lenght[1]

3) And I calculate the lat/lon values using map_proj_inverse

PRINT, MAP_PROJ_INVERSE(X,Y,MAP_STRUCTURE=!map)

Mmmmh !!!! Something is not working well because the values I obtain
are incorrect.
What am I missing ?

Thank you for your help,
nata
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: FFT of gaussian
Next Topic: Extracting cluster indices from a dendrogram

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

Current Time: Wed Oct 08 19:30:41 PDT 2025

Total time taken to generate the page: 0.00491 seconds