Re: Display and Navigate Image in IDL 8.2 [message #81342 is a reply to message #81334] |
Wed, 05 September 2012 08:53   |
DavidF[1]
Messages: 94 Registered: April 2012
|
Member |
|
|
> Here is the code that gives me a blank window and which I am
> trying to fix:
>
> obj = Image(googleImage, MAP_PROJECTION=projection, $
> ELLIPSOID=ellipsoid, GRID_UNITS=1, $
> CENTER_LONGITUDE=centerLon, CENTER_LATITUDE=centerLat, $
> LIMIT=limit, XRANGE=xrange, YRANGE=xrange, $
> DIMENSIONS=[700,700], LOCATION=[50,50], /BOX_AXES)
I have now tried this, which works no better. :-(
s = Size(googleImage, /DIMENSIONS)
xscale = Abs(xrange[1] - xrange[0]) / s[1]
yscale = Abs(yrange[1] - yrange[0]) / s[2]
x = (Findgen(s[1])*xscale) + xrange[0] + (xscale/2)
y = (Findgen(s[2])*yscale) + yrange[0] + (yscale/2)
obj = Image(googleImage, x, y, MAP_PROJECTION=projection, $
ELLIPSOID=ellipsoid, GRID_UNITS=1, $
CENTER_LONGITUDE=centerLon, CENTER_LATITUDE=centerLat, $
LIMIT=limit, XRANGE=xrange, YRANGE=xrange, $
DIMENSIONS=[700,700], LOCATION=[50,50], /BOX_AXES)
Cheers,
David
|
|
|