Newbie question about visad.math.fft

Actually, I'm a newbie to both visad *and* Fast Fourier Transforms, so sorry if I'm a little ignorant of the two.  my first question is, can the FFT object be used outside of the spreadsheet application?  I thought it could, but am less sure after reading the docs.

if so, I am trying to get a FFT of a sequence of 0's and 1's where each digit corresponds to the h(t) value where t = time.  Once calculated, I'm simply trying to find the freuquency with the greatest intensity, so there's no need for me to show it graphically.

however, it looks like the fft methods I want to use, i.e. FFT1D, require a matrix submission.  am i correct in this?  and if so, how does one convert a 1-dimensional sequence into the matrix.  I haven't seen any documentation describing how\whether this is necessary

I've also looked at the forwardFT, backwardFT, and fourierTransform functions, but am still trying to decipher VisAD's data model and figure out what a Field and a FlatField are.  I'll gladly continue to try to figure these out, but can someone point me in the right direction, i.e. should I be trying to use the fourierTransform method or the FFT1D method?

currently, this is my code:

        // generate sequence to transform  sConv....

        double[][] time;

        // find the 1st power of two larger than the length of sConv
        int size = 1;
        while (size < sConv.length()) {
            size *= 2;
        }
                                                                                          
        time = new double[1][size];
        System.out.println ("length: " + sConv.length());
        System.out.println ("power of 2 : " + size);
                                                                                          
        //      double[][] time = new double[1][sConv.length()];
        for (int i = 0; i < sConv.length(); i ++) {
            time[0][i] = sConv.charAt(i);
        }
                                                                                          
        System.out.println ("application " + sConv);
        System.out.println ("calling FFT");
                                                                                          
        FFT fft = new FFT();
        double[][] trans = new double [1][1];
        try {
            trans = fft.FFT1D (time, true);
            int i = 0;
            if (trans.length > 0) {
                for (int j = 0; j < trans[i].length; j++) {
                    String temp = new String(j + "\t");
                    for (i=0; i< trans.length; i++) {
                        temp = temp + trans[i][j] + "\t";
                    }
                    System.out.println (temp);
                }
            }
        }
        catch (Exception e) {
            System.err.println (e.getMessage());
        }

when this code is executed, a VisADException is thrown with the err message, bad x lengths...

thanks for any help or insights,

Peter Waltman