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 #81334 is a reply to message #81331] Thu, 06 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
Coyote writes:

>
>> 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)
>

Folks! Seriously!? No one has an answer?

The good news is that you are not alone. I've posed the same
problem to the good folks in IDL Technical Support and I haven't
received an answer from them, either.

This is not really a hard problem. I have a georegistered image.
I want to set up a map coordinate system that reflects that so
I can draw on top of the image, discover the cursor location in
map units, etc. It is done EVERY day in the real world.

Is is really possible that this can't be done in IDL using the
function graphics system?

I'm getting tired of writing "IDL is unusable" articles, but
if experienced people (one might say IDL experts) can't figure
out how to do the very simplest things with your software, there
is something seriously wrong. I've been blaming the software and
documentation, but maybe the users are just not bright enough
to use such sophisticated tools. (Although how long-time users
because idiots all at once is a mystery I don't yet have an
explanation for.)

Anyway, I solder on, looking for solutions anywhere I can find them.
Let me know if you come up with something!

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: Sat Oct 11 00:30:05 PDT 2025

Total time taken to generate the page: 0.97827 seconds