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.
Hi Vikram, > >From reading the exception, it seems that the setSamples() method is at > fault here. The puzzling thing (to me anyway) is why there would be a > constraint on the size of the array passed to setSamples when there isn't > one on the size of the array that I passed to the Gridded3DSet constructor. The array passed to the Gridded3DSet constructor is dimensioned: float[domain_dimension][number_of_samples] and the array passed to FlatField.setSamples() is dimensioned: float[range_dimension][number_of_samples] There is no constraint on number_of_samples in the Gridded3DSet constructor because it goes first. That is, the Gridded3DSet is an argument to the FlatField constructor that determines the number of samples in the FlatField. Once that number has been determined, then number_of_samples in the setSamples() method is constrained to be equal to the value in the Gridded3DSet constructor. > So anyway, I suppose my question is this: Is there a limit to the length > of an array passed to FlatField.setSamples()? If so, would it be possible > to break the dataset down into two or three smaller arrays and > successively run setSamples() on each of them? The length of an array passed to FlatField.setSamples() must be equal to the number of samples defined in the Set passed to the FlatField constructor. Cheers, 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
visad
archives: