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.
Hi Rick, > . . . > float[][] samples = aDomain.getSamples(false); // don't copy > int number_of_samples = samples[0].length; > > now, if i understand how the copy parameter to getSamples works, i can just > dive into the for-loop you describe above. it'll reach in and convert depth > to altitude on the existing data set, no? That would probably work, but its no a good thing to get into the habit of. The Set.getSamples(Boolean copy) method can be used to violate the immutability of Set objects. For a simple application you can get away with it. But it circumvents VisAD's event and thread-safeness logic and might cause very mysterious problems if your code ever finds its way into a large and complex application. Very clever, though. 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: