Re: trigrid + triangulate -> zero values -> ignore zeros on cgcontour [message #87292 is a reply to message #87290] |
Thu, 23 January 2014 04:09  |
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
|
|
|