NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

RE: Strange Results for Resampled Irregular3DSet

Thanks for the help, Curtis!

Best wishes,
Eugen

-----Ursprüngliche Nachricht-----
Von: Curtis Rueden [mailto:ctrueden@xxxxxxxx]
Gesendet: Donnerstag, 9. Februar 2006 22:40
An: STAAB, Eugen
Cc: 'visad@xxxxxxxxxxxxxxxx'
Betreff: Re: Strange Results for Resampled Irregular3DSet


Hi Eugen,

I said:

> Fortunately, you may not need to use IrregularSets at all. If the data 
> is merely unevenly spaced, but still a convex grid, as in your code 
> example, you can use Gridded3DSet.


If you do need to use an Irregular3DSet, you can work around the bug 
with the following code:

    Irregular3DSet iset = new Irregular3DSet(xyz, samples,
      null, null, null, new DelaunayClarkson(samples));

Instead of:

>    Irregular3DSet iset = new Irregular3DSet(xyz, samples);


This technique works because for small samplings VisAD uses the 
DelaunayWatson algorithm by default, which fails with your data, but 
DelaunayClarkson works.

>    boolean success = iset.Delan.test(samples, true);


Also, please ignore the above Delan.test line; it was for debugging and 
I had meant to remove it.

-Curtis


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