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

Home » Public Forums » archive » zoom at widgets
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: zoom at widgets [message #92364 is a reply to message #92359] Tue, 01 December 2015 01:26 Go to previous messageGo to previous message
skymaxwell@gmail.com is currently offline  skymaxwell@gmail.com
Messages: 127
Registered: January 2007
Senior Member
Thank you. I fixed it.

Now faced with another question -
How get geocoordinates from full image to zoom?

For zoom widget I have geocoordinates of center point only (latitude and longitude). How to use geocoordinates for central point to get geocoordinates for all zoomed region

Guess I need use CONVERT_COORDS function, but how to do it by correct way ?

If i did so, as shown below i've got coordinates [-180;-90] [180;90]


PRO doMoveZoom,event
WIDGET_CONTROL,event.top,GET_UVALUE=pState
x=event.x
y=event.y
print,"Coordinates in zoom widget =",x,y

IF ((*pState).zoomLoaded NE 0) THEN BEGIN
data=*(*pState).pzoomImage
;geocoordinates central pixel
zoom_coords=*(*pState).zoom_coords
value=data[x,y]
print,"Coordinates in zoom widget=",x,y,value," Central geo_point=",zoom_coords
; How to use geocoordinates for central point
;to get geocoordinates for all zoomed region ?
D = CONVERT_COORD(x,y,/DEVICE,/TO_DATA)
ENDIF
...

Thanks
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem discovered in bandpass_filter.pro
Next Topic: ROI of 3D volumes (multiple 2D slices)

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

Current Time: Sun Oct 12 12:06:43 PDT 2025

Total time taken to generate the page: 1.20050 seconds