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

Home » Public Forums » archive » Re: 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 #81315 is a reply to message #81314] Fri, 07 September 2012 06:15 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Klemen writes:

> David, I have jsut upgraded to IDL 8.2 so I can test it...

Oh, sorry. This is the third time I've paid my money and
upgraded to something unusable to me, too. I'm a really
slow learner. :-(

> The code is, I think, ok (I haven't so much experience with Image). The only problem is your definition of you georeference. I think that your ranges are defined for a usual Mercator projection with origin in 0N, 0E. But you have moved your origin to 105.1W, 40.6N. This point should have in map coordinates values 0, 0. This means that below defined range is false:
>
> XRange: [-11711131.0, -11688226.0] (meters)
> YRange: [4914254.0, 4937159.5] (meters)
>
> You could redefine your range as:
> n = 600
> res = 38.1757
> x = findgen(n)* res - n*res*0.5
> y = reverse(x)
> xrange = [min(x), max(x)]
> yrange = [min(y), max(y)]
>
> Well, then I get at least something, I am not sure if this is exactlly what you are looking for, but right mouse click gives me at least the proper longitude when I scroll over the image.

Maybe I'm seeing something different from you, but
when I put this code into my program, I see a
map projection filling the window, and a small spec
in the middle of my window which presumably represents
my image.

Probably not what I am looking for. :-)

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
Previous Topic: Re: Parrallel Matrix Inversion in IDL?
Next Topic: Reading non-standard variable sizes

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

Current Time: Thu Oct 09 16:35:31 PDT 2025

Total time taken to generate the page: 0.79929 seconds