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

Home » Public Forums » archive » Problem with CONTOUR
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 [message #16509] Wed, 28 July 1999 00:00
Haje Korth is currently offline  Haje Korth
Messages: 651
Registered: May 1997
Senior Member
Good morning everybody,
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?
I hope this wasn't too confusing to understand and if you had similar
problems and know an answer, please let me know!!!

Thanks a lot,
Haje


--
------------------------------------------------------------ ----------------

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
------------------------------------------------------------ ----------------
Re: Problem with CONTOUR [message #16510 is a reply to message #16509] Wed, 28 July 1999 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: semi-transparent (iso)surfaces
Next Topic: semi-transparent (iso)surfaces

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

Current Time: Wed Oct 08 11:37:39 PDT 2025

Total time taken to generate the page: 0.00622 seconds