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

Home » Public Forums » archive » Problem with CONTOUR-Fill
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
Problem with CONTOUR-Fill [message #2537] Wed, 27 July 1994 19:00 Go to next message
jkelley is currently offline  jkelley
Messages: 1
Registered: July 1994
Junior Member
I have a problem with CONTOUR when I use the /FILL option.
I am trying to color fill contours of temperature and then contour
the isotherms.

Here is my IDL code:


CONTOUR,Txz,X,ZM,LEVELS=[5,6,7,8,9,10,11,12,13,14,15,16,17,1 8,19,20,21,22],$
c_colors=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18], $
/FOLLOW,NLEVELS=18,/FILL,/OVERPLOT &

CONTOUR,Txz,X,ZM,LEVELS=[5,6,7,8,9,10,11,12,13,14,15,16,17,1 8,19,20,21,22],$
C_LABELS=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],col=19, $
/FOLLOW,NLEVELS=18,/OVERPLOT &

The above code works in some instances to create color filled contours
with black contours. However, in other situations it will fill
the area between contours with the same color (ex. green between 6 and 7 and
also between 7 and 8 when it should had been yellow between 7 and 8).

What am I doing wrong?


Novice IDL user,
John Kelley
jkelley@magnus.acs.ohio-state.edu
Re: Problem with CONTOUR [message #16507 is a reply to message #2537] Wed, 28 July 1999 00:00 Go to previous message
Haje Korth is currently offline  Haje Korth
Messages: 651
Registered: May 1997
Senior Member
David,
I tried your idea already and it didn't work. I was really hoping that you had
an answer for this problem. If you or anyone else finds time to try this out I
would be happy to provide my data array.

Thanks,
Haje


David Fanning wrote:

> Haje Korth (hkorth@lanl.gov) writes:
>
>> I have a problem with the CONTOUR routine and I need some experts help!
>> I have a 2-D data array with missing values marked as -1.0e20. Doing a
>> contour plot I use the MIN_VALUE keyword and set it to -1.0e10. The
>> result is that contours stop, once they reach the missing data region.
>> This is how it should be. As a next step I want to get the paths of the
>> contours (with PATH_XY and PATH_INFO) and there starts the problem:
>> Using the MIN_VALUE keyword seems to eliminate all contours that touch
>> the missing data region. If I omit the MIN_VALUE keyword, the contours
>> run along the missing data region and connect with contours of the same
>> value somewhere else. This is though what I need to avoid.
>> Thus the question is: Is there a way to obtain the paths data exactly as
>> they are plotted in the first described case?
>
> Humm. Don't know. And don't have time to test this idea,
> but have you tried setting the missing values to !Values.F_NAN?
> I can't imagine this would help, but with software you can
> never be sure. :-)
>
> 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

--
------------------------------------------------------------ ----------------
Haje Korth
Space and Atmospheric Sciences (NIS-1)
MS D466
Los Alamos National Laboratory
Los Alamos, NM 87545
Phone: (505) 667-0788
FAX: (505) 665-7395
e-mail: hkorth@lanl.gov
------------------------------------------------------------ ----------------
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: External programs
Next Topic: Re: saving a linked list to file ?

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

Current Time: Wed Oct 08 15:22:23 PDT 2025

Total time taken to generate the page: 0.00519 seconds