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

Home » Public Forums » archive » Re: Newbie needs help...
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: Newbie needs help... [message #23142 is a reply to message #23140] Wed, 10 January 2001 08:08 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Bruce Bowler (bbowler@bigelow.org) writes:

> I've lurked for a while and now it's time to ask for help...

Uh, oh. Trouble here. Newbies and de-cloaked lurkers
always ask the most difficult questions. :-(

> I have some satellite data that I need to a) display a portion of on the
> globe and b) extract the data at various positions.
>
> Towards that end, I've snarfed up image_map.pro from Liam Gumley's site
> and regrid.pro and tvim.pro from ESRG. They both do sort of what I want
> but neither gets me "all the way there".
>
> Liam's does a nice job of displaying the image and letting me plop a
> grid and continent map on top but he's got this big fat caveat in the
> code that says "This procedure was designed for display purposes *only*"
> (emphasis his) and some bits about dire consequences if used otherwise.
>
> regrid does a good job of "regularizing" the data and tvim makes a nice
> plot with scales and color bars and all that nice stuff (without the
> "dire consequences" :-) but when I try and slap a grid or continental
> blobs on the image, they puke complaining that "the current device must
> have mapping coordinates"...
>
> In either case, I'm left with the problem of mapping a lat/lon that the
> user inputs to a pixel on the screen (or an element in an array, as the
> case may be).

What you want to do--slap a lat/lon grid on top of
an image--is reasonable. It's just that IDL is not
the software you should be using to do it. :-)

IDL works the other way around. It allows you to
slap an image on top of a lat/lon grid. Sometimes
the result is similar, but if you hold pixel values
to be sacrosanct, then you are almost always disappointed
in what you can do with IDL.

Liam offers his big fat caveat with good reason. He figured out
a clever way of making the image display *look* right, but
he is rightfully offering no guarantees about the numbers.

Liam can fill you in on the details of this better than
I can, but if you persist I can recommend "getting used
to disappointment" as the appropriate spiritual practice.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[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
Previous Topic: Re: IDL compatibility
Next Topic: Tickmarks and ticklabels

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

Current Time: Sat Oct 11 08:02:23 PDT 2025

Total time taken to generate the page: 0.15564 seconds