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

Home » Public Forums » archive » Re: read a file written in fortran
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: read a file written in fortran [message #71182 is a reply to message #71181] Mon, 07 June 2010 12:54 Go to previous messageGo to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Jun 7, 4:42 pm, bing999 <thibaultga...@gmail.com> wrote:
> It contains rows all equivalent to the one below:
>
> 0.207720E-03  0.245036E+02  0.497323E+01  0.116080E+22  0.156774E+01
> 0.615295E-04  0.893258E-06  0.100000E+01  0.145065E-01T

You are telling IDL to read just one 14-digit float, followed by one
character. That will be the first number, followed by the "0" that
happens to be the character at position 15. That in itself would not
cause that error, though presumably is not what you want, since the
logical variable is printed at the end of the line. Do you want to
read all 9 numbers, plus the logical value, or just one, skip the
middle columns, then the logical value?

I am guessing you read statement is in some loop, so that it kept
trying to read, and reached the end of the file. If you show it, it
may become clear why this is failing.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Map projection in ENVI
Next Topic: Fitting an implicit function with IDL

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

Current Time: Fri Oct 10 06:50:24 PDT 2025

Total time taken to generate the page: 1.75500 seconds