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 #71181] Mon, 07 June 2010 13:20 Go to previous message
Thibault Garel is currently offline  Thibault Garel
Messages: 55
Registered: October 2009
Member
>
> 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.

What i do in fact is:
readf,11,format='(9e14.6,A1)', a,b,c,d,e,f,g,h,i,my_logical

where a,b,c.... are initialized to 0.0d0
[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: Wed Oct 08 15:35:01 PDT 2025

Total time taken to generate the page: 0.00425 seconds