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

Home » Public Forums » archive » Re: Further adventures in POLAR_CONTOUR
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: Further adventures in POLAR_CONTOUR [message #79413 is a reply to message #79412] Wed, 29 February 2012 06:13 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
John Coxon writes:

> However, since then, it has become apparent that it would be useful to
> put the contours above some lines that denote the co-ordinate system,
> and so I began to experiment with putting two separate contour plots on
> top of those lines. (I now know, thanks to David, that /cell_fill
> doesn't ruin my fills in the way I thought it did, so this has become
> easier and more elegant within the last few minutes!)

Well, a couple of things about this plot. First of all,
my remarks yesterday had to do with contour plots on MAP
PROJECTIONS. I really don't know what happens when you
use CELL_FILL with Contour without putting it on a map
projection. Nothing good, probably. :-)

In any case, there are no map projections here, so if
I were creating this plot, I would be using the FILL keyword.

I have almost no experience with POLOR_CONTOUR, although
I see it is simply a wrapper for the Contour command. It
takes your polar coordinates, translates them to Cartesian
coordinates, then grids them with Triangulate and TriGrid,
before passing the result to the Contour command. If things
go wrong, it is almost certainly in the gridding part of
the code.

I have never had any luck "layering" filled contour plots.
I think you have to create them all at once with the data
you have. If your data truly goes from -1 to 1, I would
have just created the levels and contour colors like this:

levels = Findgen(10) * 0.2 - 1.0
c_colors = Indgen(10)+1

And called Polar_Contour once, with the FILL keyword set.
That certainly works with the test data set I created and
the colors you loaded.

After you get your filled contours, you can overlay contour
lines in various colors, etc. That should be pretty straightforward.

I guess my general feeling, without the data to work with, is
that this whole business has been make overly complex. If I were
having problems with it, I would probably try gridding the data
myself, so I had more control over that part of it, and then
using cgContour to explore the rest of it.

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
Previous Topic: Re: idl_idlbridge weirdness on unix systems
Next Topic: CrowdFinch Technologies

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

Current Time: Sat Oct 11 11:44:29 PDT 2025

Total time taken to generate the page: 1.92278 seconds