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

Home » Public Forums » archive » trigrid + triangulate -> zero values -> ignore zeros on cgcontour
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: trigrid + triangulate -> zero values -> ignore zeros on cgcontour [message #87292 is a reply to message #87290] Thu, 23 January 2014 04:09 Go to previous message
Yngvar Larsen is currently offline  Yngvar Larsen
Messages: 134
Registered: January 2010
Senior Member
What happens if you set the MISSING keyword of TRIGRID to !values.f_nan? The 0 value you observe is just the default value that TRIGRID uses if MISSING is not set.

I haven't checked whether CONTOUR handles NaNs well, but it should according to the documentation.

--
Yngvar

On Thursday, 23 January 2014 12:56:34 UTC+1, jkob...@gmail.com wrote:
> Dear All,
>
>
>
> I'm having problem with a contour plot, which is actually not a problem, because the routine works fine,
>
> I just want to make a little modification:
>
>
>
> I have an M X N matrix, created with trigrid + triangulate. The input data (z component) has
>
> a min value of 12, but the output matrix has a min value of 0, I guess this is normal.
>
> What I would like to do is to ignore this zeros when creating the contour plot with cgcontour,
>
> i.e. where the matrix has a value of 0, it will appear as a white area on the plot, and the rest fo them will appear normally as it should be.
>
>
>
> Could You guys give some help?
>
>
>
> Joe
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How can I change from qwerty keyboard to azerty ?
Next Topic: How to obtain running averages for different time scales in IDL?

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

Current Time: Fri Oct 10 01:39:56 PDT 2025

Total time taken to generate the page: 0.31874 seconds