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: Data connection in vector vis

Try:

      float[][] field_data = new float[2][cols * rows];
. . .
      int k = 0;
      for (int j = 0; j < cols; j++)
         for (int i = 0; i < rows; i++) {
            field_data[0][k] = vx[i][j];
            field_data[1][k] = vy[i][j];
            k++;
         }
// and delete the second loop over field_data

----------------------------------------------------------
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



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