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

Home » Public Forums » archive » Re: get lat/lon from image with MAP_SET
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: get lat/lon from image with MAP_SET [message #81292] Fri, 31 August 2012 08:27
DavidF[1] is currently offline  DavidF[1]
Messages: 94
Registered: April 2012
Member
Skymaxwell writes:

> I have image with map_set in widget_draw. Here is sample code
>
> MAP_SET,/STEREO,-90.,0.,/ISOTROPIC,/HORIZON,E_HORIZON={FILL: 0}
> r=map_image(data,startx,starty,LATMIN=-90,LATMAX=0,$
> LONMIN=-180,LONMAX=180,COMPRESS=1)
> TVSCL,r,startx,starty
>
> I want get lat/lon values from pixel under cursor. How i can do that ?

Restore your map data coordinate system (probably from saved !X,!Y, and !P
system variables (unless you want to use Coyote Map routines), then use
Convert_Coord to convert your event.x and event.y device coordinates to
data coordinates.

Cheers,

David
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: get lat/lon from image with MAP_SET
Next Topic: Succinct way of testing array membership

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

Current Time: Wed Oct 08 15:37:12 PDT 2025

Total time taken to generate the page: 0.00555 seconds