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

Home » Public Forums » archive » NAN in 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: NAN in contour [message #35512 is a reply to message #35419] Mon, 16 June 2003 17:19 Go to previous messageGo to previous message
tomson is currently offline  tomson
Messages: 39
Registered: March 2003
Member
Thank you.
I use another array z1 like z1=0 and z1(fp)=1, fp=where(finite(z)). A filled
contour(z1,x,y) with two levels(0,1) is added to the original contour.
That's OK!

"David Fanning" <david@dfanning.com> д����Ϣ����
:MPG.1957823387d9dc0298968a@news.frii.com...
> Tomson writes:
>
>> I use the contour and contourbar like David wrote on his web. I have a
>> question, for example,
>> contour, z,x,y
>> there are some NAN in z, I want the figure at such position to fill with
>> black point. How to do that? Now at such position, the figure is white
>> blank.
>
> It is hard to tell, with the detail you have given,
> exactly what you are trying to do here, but it sounds
> like a filled contour plot of data that has NANs in it.
> I think the white blank space is actually coming about
> from *not* setting the NAN keyword on the MIN and MAX
> functions that are used to calculate the contour
> intervals. (At least if you are using the code on
> my web page.)
>
> If you were doing this correctly the NAN values would
> assume the same color as the surrounding pixels that
> were good values, and you should see broken contour
> lines on your plot, etc. In other words, the NANs
> should just be ignored.
>
> I don't think there is an easy way to set these
> values to a specific color. And no way to set them
> to a specific color that doesn't look artificial and
> clunky.
>
> Cheers,
>
> David
>
> --
> David W. Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Phone: 970-221-0438, E-mail: david@dfanning.com
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
> Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Rotated pole and vectors
Next Topic: Re: Contour object quality

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

Current Time: Wed Oct 08 19:20:17 PDT 2025

Total time taken to generate the page: 0.00220 seconds