Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

Re: Gridded1dDoubleSet Problem

For a degenerate Set (multiple identical points) you should
probably use an Irregular2DSet and a DelaunayCustom (so you
can tell it what topology to use - the automated Delaunay
algorithms will also throw Exceptions on this).

Good luck,
Bill
----------------------------------------------------------
Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI  53706
hibbard@xxxxxxxxxxxxxxxxx  608-263-4427  fax: 608-263-6738
http://www.ssec.wisc.edu/~billh/vis.html


On Wed, 17 Apr 2002, Praktikanten-Account wrote:

> hello mailinglistEner
>
> i have a problem.
> i would like to draw a triangle with the x,y coordinates (0.5/0.5 |
> 1.0/1.0 | 1.0/0.5 | 0.5/0.5)
> i wrote something like this
>
>   x = new RealType("X", SI.meter, null);
>   y = new RealType("Y", SI.meter, null);
>
>  double [][] x_vals = new double[][]{{0.5,1.0,1.0,0.5}};
>
>  x_set = new Gridded1DDoubleSet(x, x_vals, 4);
>
>  double [][] y_vals = new double[][]{{0.5,1.0,0.5,0.5}};
>
>
> and he shows me after the start this Set.Exception
>
> Gridded1DDoubleSet: samples do not form a valid grid (2)
>
> i think that is because of the same coordinates and the
> Gridded1DDoubleSet.
> but which set should i use ?
>
> thanks
> larsson
>
>


  • 2002 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: