Re: setSamples() array error

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
> one on the size of the array that I passed to the Gridded3DSet
The array passed to the Gridded3DSet constructor is dimensioned:
and the array passed to FlatField.setSamples() is dimensioned:
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
> 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
> 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.
Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI  53706
hibbard@xxxxxxxxxxxxxxxxx  608-263-4427  fax: 608-263-6738