Re: 17 input fields

Michelle:

Thanks for sending the file.

It appears that the entire problem you are having is because of the names of two of your parameters: RI-X and RI-Z. Since the names you specify to the TextAdapter are directly used to make VisAD MathTypes (RealTypes in this case), you need to adhere to the rules for the names of MathTypes...which means no "-" signs (only letters, numbers and underscore may be used). If you change the "-" to underscore, you should be able to read the .csv file.

Also, if you use the TextAdapter directly (instead of the generic 'load()' method), the Exception you received would have read:

visad.VisADException: TextAdapter: MathType badly formed or missing: ((index)->(
torque,RI-X,RI-Z,DRY_Mass,Prop_mass,RW_Index,RW_Choice,Pay_power,Pay_Mass,MinFre
qMode,Miss_Life,Slew_Angle,Delta_V,Slew_Time,Mass,sheet_thick,Cost))

The reason for this is that the 'load()' method handles Exceptions and tries other FileAdapters to see if one works for the file.

Hope that helps.

tom


Kam, Michelle C wrote:

Hi Tom,

I attached the file that I am trying to load into a spreadsheet cell.
The 2 line header at the top is the same as my original .csv file but I
removed most of the rows. There were over 1,000 rows but I shorted it
down considerably. I get "the source could not be converted to visad
data."

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: Tom Whittaker [mailto:tomw@xxxxxxxxxxxxx]
Sent: Tuesday, July 22, 2003 6:14 AM
To: Kam, Michelle C
Subject: Re: 17 input fields


Hi Michelle:

I'm back from travels for a few days.  If you still need help with this,

please FTP a copy of your file to our server and let me know what you call it.

tom


Kam, Michelle C wrote:


I'm trying to load a csv file with 17 input fields but I'm getting an

error: visad could not convert the source to a visad data file. Can
Visad handle an input of 17 fields?

In the next email is the csv file zipped up. The 2 line header is at

the top. I mapped the index to all of 17 fields.

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







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


  • 2003 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: