Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

2D Grid Generation using VisAD

Hi Pardeep,

>       for(int i = 0; i < 2; i++) {
>             for(int j = 0; j < nv; j++) {
>              vals[0][j] = (float)iverts[j];
>              vals[1][j] = (float)jverts[j];
>             }
>         }

What does the outer loop do here?  I think what you're trying to do
is to create a set of Gridded2DSets for each row, and another set of
Gridded2DSets for each col.  This will show you the connection of 
points you want to see.  If this is indeed the depiction you desire,
you'll need to fix your code.  I believe what you're seeing now is a
single Gridded2DSet for the entire set of points because that's what
you've created. An example of this is visad.data.mcidas.BaseMapAdapter. 

Tom Rink


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690