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

3D visualization problem

I used the nonequally distributed 3d coornidates of each node to constuct a [3][Rows*Cols*Levls] samples and then use it to establish a domain_set using either Irregular3DSet or Gridded3DSet, see below. I then put it in P$_10, why does it come up with just some points distributed in 3D space according to given coordinates? How can I improve it. Thanks so much.

Yi


float[][] sd=new float[][]{
                                            {
                                            1f,2f,3f,4f,5f,6.0f,
                                            0.92f,1.84f,2.76f,3.68f,4.6f,5.52f,
                                            0.71f,1.42f,2.13f,2.84f,3.55f,4.26f,
                                            0.38f,0.76f,1.14f,1.52f,1.9f,2.3f,
                                            0f,0f,0f,0f,0f,0f,

                                            1f,2f,3f,4f,5f,6.0f,
                                            0.92f,1.84f,2.76f,3.68f,4.6f,5.52f,
                                            0.71f,1.42f,2.13f,2.84f,3.55f,4.26f,
                                            0.38f,0.76f,1.14f,1.52f,1.9f,2.3f,
                                            0f,0f,0f,0f,0f,0f,

                                            1f,2f,3f,4f,5f,6.0f,
                                            0.92f,1.84f,2.76f,3.68f,4.6f,5.52f,
                                            0.71f,1.42f,2.13f,2.84f,3.55f,4.26f,
                                            0.38f,0.76f,1.14f,1.52f,1.9f,2.3f,
                                            0f,0f,0f,0f,0f,0f,

                                            1f,2f,3f,4f,5f,6.0f,
                                            0.92f,1.84f,2.76f,3.68f,4.6f,5.52f,
                                            0.71f,1.42f,2.13f,2.84f,3.55f,4.26f,
                                            0.38f,0.76f,1.14f,1.52f,1.9f,2.3f,
                                            0f,0f,0f,0f,0f,0f,
                                            },
                                            {
                                            0f,0f,0f,0f,0f,0f,
                                            0.38f,0.76f,1.14f,1.52f,1.9f,2.3f,
                                            0.71f,1.42f,2.13f,2.84f,3.55f,4.26f,
                                            0.92f,1.84f,2.76f,3.68f,4.6f,5.52f,
                                            1f,2f,3f,4f,5f,6.0f,

                                            0f,0f,0f,0f,0f,0f,
                                            0.38f,0.76f,1.14f,1.52f,1.9f,2.3f,
                                            0.71f,1.42f,2.13f,2.84f,3.55f,4.26f,
                                            0.92f,1.84f,2.76f,3.68f,4.6f,5.52f,
                                            1f,2f,3f,4f,5f,6.0f,

                                            0f,0f,0f,0f,0f,0f,
                                            0.38f,0.76f,1.14f,1.52f,1.9f,2.3f,
                                            0.71f,1.42f,2.13f,2.84f,3.55f,4.26f,
                                            0.92f,1.84f,2.76f,3.68f,4.6f,5.52f,
                                            1f,2f,3f,4f,5f,6.0f,

                                            0f,0f,0f,0f,0f,0f,
                                            0.38f,0.76f,1.14f,1.52f,1.9f,2.3f,
                                            0.71f,1.42f,2.13f,2.84f,3.55f,4.26f,
                                            0.92f,1.84f,2.76f,3.68f,4.6f,5.52f,
                                            1f,2f,3f,4f,5f,6.0f,
                                            },
                                            {
                                            0f,0f,0f,0f,0f,0f,
                                            0f,0f,0f,0f,0f,0f,
                                            0f,0f,0f,0f,0f,0f,
                                            0f,0f,0f,0f,0f,0f,
                                            0f,0f,0f,0f,0f,0f,

                                            1f,1f,1f,1f,1f,1f,
                                            1f,1f,1f,1f,1f,1f,
                                            1f,1f,1f,1f,1f,1f,
                                            1f,1f,1f,1f,1f,1f,
                                            1f,1f,1f,1f,1f,1f,

                                            2f,2f,2f,2f,2f,2f,
                                            2f,2f,2f,2f,2f,2f,
                                            2f,2f,2f,2f,2f,2f,
                                            2f,2f,2f,2f,2f,2f,
                                            2f,2f,2f,2f,2f,2f,

                                            3f,3f,3f,3f,3f,3f,
                                            3f,3f,3f,3f,3f,3f,
                                            3f,3f,3f,3f,3f,3f,
                                            3f,3f,3f,3f,3f,3f,
                                            3f,3f,3f,3f,3f,3f,
                                            }
                                        };
   domain_set=new Gridded3DSet(domain_tuple,sd,6,5,4);
or
   domain_set=new Irregular3DSet(domain_tuple,sd);


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


 
 
  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