Since you have a 2D domain, your 'protein' array must be dimensioned
[#samples]. Also, before you construct the Irregular2DSet, you must
put values into the sampling array. Aside from that, it is not at all
clear as to what type of domain you really want to make, since your
nested 'for' loops seem to be trying to fill up a regularly-spaced
'grid' of values.
On Tue, 17 Sep 2002, Brobbey,Isaac wrote:
> i finally resolve it and it compile, but the run-time error
> Exception in thread "main" visad.SetException: SampledSet.init_samples:
> sample dimension 1 doesn't match expected length 2
> at visad.SampledSet.init_samples(SampledSet.java:69)
> makes me wonder if RealTupleType tuple = new RealTupleType(mass, pi); is
> wrong, because i am trying to make the (mass,pi) as the domain and ratio as
> the range.
> see the attached file please.
University of Wisconsin-Madison
Space Science and Engineering Center
Cooperative Institute for Meteorological Satellite Studies