RE: your mail

Hello,

I sent an email asking about how to link a particular file with a button
added to the toolbar on the top of the spreadsheet. I added the following to
SpreadSheet.java in the ss package:

      addToolbarButton("GO", "Open small.v5d", "loadMyDataSet", true,
Toolbar);

        public void loadMyDataSet() throws VisADException, RemoteException {
        try {
     DisplayCells[0][0].addDataSource("data/small.v5d");
       } 
        catch (VisADException exc) {
     System.out.println("Could not load file small.v5d into the
SpreadSheet");
}
        catch (RemoteException exc) {
     System.out.println("Could not load file small.v5d into spreadsheet");
  }
}

It compiles normally, but when I open up VisAD, I don't see my changes. Do
you know if I am supposed to do something in addition to just opening up a
VisAD SpreadSheet to see my changes?

Thanks!
Michelle Kam

Michelle Kam           (408) 742-2881
Lockheed Martin Space Systems Co. SSM/ATC/MSIS
B/153 O/L922 
1111 Lockheed Martin Way, Sunnyvale, CA 94089




-----Original Message-----
From: Tom Whittaker [mailto:tomw@xxxxxxxxxxxxx]
Sent: Friday, June 06, 2003 11:24 AM
To: Kam, Michelle C
Subject: Re: your mail


Yes, VisAD has a text adapter that can deal with csv files that 
essentially contain data to be made into a single VisAD Data object. 
You must, however, add two lines at the beginning of the file to define 
the math type of the resulting VisAD Data object, and the order of the 
parameters in the file.  The data may be comma, tab, or space-delimited.

All this is described in the readme file at:

http://www.ssec.wisc.edu/~billh/README.text

(the latest copy of this file can be found in the VisAD source code 
under:  visad/data/text/README.text -- the code was recently updated to 
permit better handling of time formats).

tom


Kam, Michelle C wrote:

> Hi,
> 
> Do you know if Visad can work with (import/export) Excel csv files?
> 
> Thanks,
> Michelle
> 
> Michelle Kam           (408) 742-2881
> Lockheed Martin Space Systems Co. SSM/ATC/MSIS
> B/153 O/L922 
> 1111 Lockheed Martin Way, Sunnyvale, CA 94089
> 
> 
> 
> 
> -----Original Message-----
> From: Bill Hibbard [mailto:billh@xxxxxxxxxxxxx]
> Sent: Friday, June 06, 2003 3:51 AM
> To: Kam, Michelle C
> Cc: visad-list@xxxxxxxxxxxxx
> Subject: Re: your mail
> 
> 
> Hi Michelle,
> 
> I am CC'ing to visad-list since your message to the list
> was bounced by our dumb majordomo server because the
> subject line included "help".
> 
> When you compile VisAD from source, your CLASSPATH environment
> variable must include the PARENT directory of visad. So if your
> visad package is in /home/michelle/java/visad, then your
> CLASSPATH must include /home/michelle/java.
> 
> Good luck,
> Bill
> 
> On Thu, 5 Jun 2003, Kam, Michelle C wrote:
> 
> 
>>Hi,
>>
>>I downloaded the source code for visad and I'm not trying to compile the
>>.java classes for the spreadsheet. But I'm running into many compile
> 
> errors.
> 
>>I'm wondering if I installed it incorrectly. Are there instructions on how
>>to get started if I'm compiling only the spread sheet code on a windows
>>machine?
>>
>>Thanks,
>>Michelle Kam
>>
>>Michelle Kam           (408) 742-2881
>>Lockheed Martin Space Systems Co. SSM/ATC/MSIS
>>B/153 O/L922
>>1111 Lockheed Martin Way, Sunnyvale, CA 94089
>>
>>
>>
>>
> 
> 
> 

-- 
Tom Whittaker (tomw@xxxxxxxxxxxxx)
University of Wisconsin-Madison
Space Science and Engineering Center
Cooperative Institute for Meteorological Satellite Studies
Phone/VoiceMail: 608.262.2759