Re: Display and Navigate Image in IDL 8.2 [message #81361 is a reply to message #81350] |
Tue, 11 September 2012 08:03   |
lecacheux.alain
Messages: 325 Registered: January 2008
|
Senior Member |
|
|
Le mardi 11 septembre 2012 16:24:14 UTC+2, David Fanning a écrit :
Several things:
1) by OVERLAY, I mean that both the image and the grid should be drawn at the same position in the window (through CURRENT and POSITION keywords).
2) I found that keywords LONGITUDE/LATITUDE_MAX/MIN have same effect as LIMIT. You should use only one of them !
3) where your values "LONGITUDE_MIN=-105.18, LATITUDE_MIN=40.54" are coming from ? Please refer to my previous (saturday) post, for the recovery of the right (?) values.
4) I guess that your code should be:
img = IMAGE(googleimage, POSITION=[0.05,0.15,0.95,0.95], DIMENSIONS=[700,700])
mp = Map('Mercator', $
;set the overall projection
ELLIPSOID='WGS 84', CENTER_LONGITUDE=clon, $
TRUE_SCALE_LATITUDE=0d, $
;set the grid limits (you could use LIMIT too)
LATITUDE_MIN=40.521578, LATITUDE_MAX=40.678329, $
LONGITUDE_MIN=-105.20283, LONGITUDE_MAX=-104.99717, $
;set the grid appearance
GRID_LONGITUDE=1./20, GRID_LATITUDE=1./30, LINESTYLE=1, $
LABEL_POSITION=0, BOX_AXES=1, BOX_ANTIALIAS=1, $
;put the grid at the right place in the current window
POSITION=[0.05,0.15,0.95,0.95], /CURRENT)
Cheers,
Alain.
|
|
|