comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Writing a modified .txt file issue
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Writing a modified .txt file issue [message #85382 is a reply to message #85381] Mon, 29 July 2013 19:31 Go to previous messageGo to previous message
David Fanning is currently offline  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.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Find all user-defined structure definitions
Next Topic: Multiple plots with plot function

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 11:38:05 PDT 2025

Total time taken to generate the page: 0.48302 seconds