Re: Writing a modified .txt file issue [message #85382 is a reply to message #85381] |
Mon, 29 July 2013 19:31   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Wayne Landsman writes:
> Hmm, I just cut and pasted your code and got the expected output structure corresponding to the input file. The only change I had to make was to define Ncolumns which isn't defined in your code snippet. Perhaps you had an incorrect value of Ncolumns stored somewhere?
Really!? I added in ncolumns=5 (which was defined from before, but I put
it in the code anyway). I get exactly the same results as before. This
is really very weird. In your data file, are your columns LEFT
justified?
OK, now I'm pissed. Here is the data file I used, and the program I
used.
http://www.idlcoyote.com/misc/read_bad_data.zip
And, again, here are my results:
IDL> .go
This is the result structure:
{ 2006/1 0.000000 0.000000 0.000000 6.00000}
{ 2006/1 0.000000 0.000000 0.000000 12.2500}
{ 2006/2A 0.000000 0.000000 0.000000 2.00000}
{ 2006/2A 0.000000 0.000000 0.000000 5.90000}
{ 2006/2A 0.000000 0.000000 0.000000 8.70000}
This is IDL 8.2.3 on Windows.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|