Re: Display and Navigate Image in IDL 8.2 [message #81363 is a reply to message #81350] |
Tue, 11 September 2012 07:09   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
alx writes:
> You should avoid any warping if you simply OVERLAY the
> image and the map grid calculated by using exactly the
> SAME projection as the one which was used when the
> (projected) image was computed.
I'm not sure exactly what you are talking about now.
Here is the code I am using currently. When I substitute
OVERPLOT (I assume this is what you mean by OVERLAY)
for the CURRENT keyword, my image disappears and I see
only a map projection in my display window.
img = Image(googleImage, POSITION=[0.1, 0.1, 0.9, 0.9], $
DIMENSIONS=[700,700])
mp = Map('mercator', ELLIPSOID='WGS 84', $
CENTER_LONGITUDE=centerLon, $
LIMIT=limit, /BOX_AXES, $
POSITION=[0.1, 0.1, 0.9, 0.9], /CURRENT, $
GRID_LONGITUDE=0.04, GRID_LATITUDE=0.03, LABEL_POSITION=1, $
LONGITUDE_MIN=-105.18, LATITUDE_MIN=40.54, LINESTYLE=1)
sym = Symbol(centerLon, centerLat, 'star', /DATA, $
SYM_COLOR='red', SYM_SIZE=3, SYM_FILLED=1)
This *does* result in an unblurred image. But, I notice
another very strange thing. Even though I use IDENTICAL
values to set up the map projection this way, I get
DIFFERENT results!
What the hell!?
I've been working on this four days now! Every time I try to
do something simple in Function Graphics it is like this.
It is a friggin' nightmare!
You can run this program to see what I mean. You will
see the Coyote Graphics result, and two different
Function Graphics results, even though the map projection
has been set up in *exactly* the same way!
http://www.idlcoyote.com/tip_examples/mapnogrid.pro
Even if I could get this to work, I don't believe I could
ever trust the results!!
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.")
|
|
|