Re: Color fill

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue Dec 29 2009 - 10:04:48 MST

Yongzuo,

With the triangular mesh algorithm, if you don't have a separate
array that defines the edges of the triangular mesh (that is, how the
triangles are connected), then the algorithm is not going to be able
to determine where the actual edges are. It will interpolate to fill
the polygon that encloses all of your points.

If you go to http://www.ncl.ucar.edu/Applications/trimesh.shtml you
will see that both examples are setting an additional resource called
"sfElementNodes" that defines how the triangles are connected.

One other way to keep these areas from being filled in is to apply a
"mask" array if you have one. Do you have anything like this in your
ASCII file? (Dennis provided me with your file offline.)

--Mary

On Dec 23, 2009, at 11:29 AM, Li, Yongzuo wrote:

> Hi,
>
> Attached is a plot for station data with color fill.
>
> The problem is that NCL makes color fill everywhere.
>
> I compared it with one plot that makes color fill
> only where station data is given.
>
> I tried Spherical and TriangularMesh.
>
> Thanks.
>
> Yongzuo
> <radarCNFILL.docx>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Dec 29 10:05:10 2009

This archive was generated by hypermail 2.1.8 : Tue Dec 29 2009 - 10:29:16 MST