Re: Display and Navigate Image in IDL 8.2 [message #81349 is a reply to message #81346] |
Tue, 04 September 2012 14:12   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
David Fanning writes:
> I can get the image to display with this command.
>
> obj = Image(googleImage, /BOX_AXES, $
> map_projection='mercator', ellipsoid='WGS84', $
> Center_Latitude=centerLat, Center_Longitude=centerLon, $
> LIMIT=limit, XRANGE=xrange, YRANGE=yrange, GRID_UNITS=1, $
> DIMENSIONS=[700,700], LOCATION=[50,50])
>
> But, as you can see, no box axes and what map labels there are
> on the image are completely wrong. :-(
Oh, sorry. I *can't* get it to display with that command, if
I actually define the variables I am using. I confused myself
when I moved this out of the widget program and over to the
command line.
centerlat = 40.6
centerlon = -105.1
limit = [-84.7500, -180.000, 84.7500, 180.000]
xrange = [-11711131.0, -11688226.0]
yrange = [4914254.0, 4937159.5]
obj = Image(googleImage, /BOX_AXES, $
map_projection='mercator', ellipsoid='WGS84', $
Center_Latitude=centerLat, Center_Longitude=centerLon, $
LIMIT=limit, XRANGE=xrange, YRANGE=yrange, GRID_UNITS=1, $
DIMENSIONS=[700,700], LOCATION=[50,50])
So, window opens, but completely blank. Any ideas?
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|