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

Home » Public Forums » archive » Display and Navigate Image in IDL 8.2
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: Display and Navigate Image in IDL 8.2 [message #81363 is a reply to message #81350] Tue, 11 September 2012 07:09 Go to previous messageGo to previous message
David Fanning is currently offline  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.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Add a colorbar in a filled contour
Next Topic: PLOT() function THICK keyword in v8.2 just a guideline?

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

Current Time: Thu Oct 16 01:29:35 PDT 2025

Total time taken to generate the page: 1.99820 seconds