MathGroup Archive 2003

[Date Index] [Thread Index] [Author Index]

Search the Archive

Import v4.1 to v5.0

  • To: mathgroup at smc.vnet.net
  • Subject: [mg43366] Import v4.1 to v5.0
  • From: charles.koehler at marquette.edu (Charles Koehler)
  • Date: Tue, 26 Aug 2003 07:13:45 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Hello,

With the previous version of Mathematica I was able to import data
like this easily.

"ZPlotW Data File: Version 2.2"
"Raw Data"
"Sweep Frequency: Control Voltage"
Commentary
Description
FileLocation
"Frequency"
0,3,0,1,10000,0.0075
63
"  Freq(Hz)    Ampl     Bias   Time(Sec)   Z'(a)    Z''(b)    GD   Err
  Range"
1.000000E+04, 2.5000E-01, -1.7000E-02, 3.450000E+00, 3.0328E+04,
-2.6945E+05, 0.0000E+00, 0, 6
7.943282E+03, 2.5000E-01, -1.7000E-02, 4.160000E+00, 4.0364E+04,
-3.3784E+05, 0.0000E+00, 0, 6

This data file consists of 11 lines of header followed by 63 rows of
data consisting of 9 columns.   (Note: disregard the word wrapping in
the above data)

I would use a function like this:

ReadData[datafile_] := Module[{fn, data},
	  fn = Import[datafile, "Table"];
	  data = Drop[fn, 11];
  	data]
If is listed the data it woul look as expected:
{1.000000E+04, 2.5000E-01, -1.7000E-02, 3.450000E+00, 3.0328E+04,
-2.6945E+05, 0.0000E+00, 0,6},     ...etc.

Version 5.0 now reads in the data after the header as below, with 2
commas between each column.

{{1.000000E+04,, 2.5000E-01,, -1.7000E-02,, 3.450000E+00,,   
3.0328E+04,, -2.6945E+05,, 0.0000E+00,, 0,, 6},     ...etc.

Any suggestions on a workaround?

Sincerely,

Charles Koehler


  • Prev by Date: (complicated) matrix differentiation
  • Next by Date: segmentation fault (Mandrake)
  • Previous by thread: Re: (complicated) matrix differentiation
  • Next by thread: segmentation fault (Mandrake)