Re: Problem with CONTOUR [message #16507 is a reply to message #2537] |
Wed, 28 July 1999 00:00  |
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
------------------------------------------------------------ ----------------
|
|
|