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

Home » Public Forums » archive » Re: overlaying graphs on top of maps
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: overlaying graphs on top of maps [message #45708] Fri, 30 September 2005 09:10
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Martin writes:

>
> I'm trying to overlay several graphs on top of a map projection in
> order to show varying degrees of pollution in different parts of the
> globe.
>
> Out of naivety or optimism I tried using OPLOT although I got the
> error;
> % OPLOT: Value of Latitude is out of allowed range.
>
> Could someone give me a clue about how to go about doing this at all? I
> have a sneaking suspicion that someone will say Object Graphics!

Object Graphics!? I don't think so. I would have said
PLOT with the NOERASE keyword set. :-)

Cheers,

David

P.S. Your OPLOT would have worked if you had set
up a plot coordinate system first. There are many
ways to do this, but one way would have been to
make a pixmap of your map window and draw a plot
into that window. Then you could switch back to your
map window and do your OPLOT there.

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: overlaying graphs on top of maps [message #45709 is a reply to message #45708] Fri, 30 September 2005 08:47 Go to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Martin wrote:
> Hi guys,
>
> I'm trying to overlay several graphs on top of a map projection in
> order to show varying degrees of pollution in different parts of the
> globe.
>
> Out of naivety or optimism I tried using OPLOT although I got the
> error;
> % OPLOT: Value of Latitude is out of allowed range.
>
> Could someone give me a clue about how to go about doing this at all? I
> have a sneaking suspicion that someone will say Object Graphics!

Do you mean you want the map projection to be the plot background, and you just want to
plot over it (without erasing it) ??

Maybe you can use the Z-buffer (same method used to overplot surfaces, surface+contour,
etc). Only problem then is you're restricted to the crappy screen fonts for output.

Do you need this plot for a presentation/document? If so I would just let IDL do what IDL
does best and plot the data. I would then save it as a PS file (great fonts), convert it
to a transparent gif(or png), and then simply import it over my map of the world image in
the final application (e.g. Powerpoint or Word, or Photoshop, etc.)

The above (if it's at all what you need) may sound complicated, but it would take me
about, oh, maybe an hour total (including figuring-it-out time). Doing everything in IDL
via object graphics would take me at *least* a week. :o)

paulv

--
Paul van Delst
CIMSS @ NOAA/NCEP/EMC
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Text Orientation
Next Topic: Linux Font Warning

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

Current Time: Fri Oct 10 11:27:51 PDT 2025

Total time taken to generate the page: 1.04047 seconds