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 #71185 is a reply to message #71184] Mon, 07 June 2010 12:34 Go to previous messageGo to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Jun 7, 4:27 pm, bing999 <thibaultga...@gmail.com> wrote:
> Hi,
> I want to read with IDL an ascii file written in Fortran 90.
>
> The file contains two types of data: double floats and "logical". For
> the floats no problem but for the logical (which writes either T or F
> (for true or false) in the ascii file) i get " READF: End of file
> encountered" while doing:
>
> my_float = 0.0d0
> my_logical='a'
>
> readf,11,format='(1e14.6,A1)', my_float,my_logical
>
> Is there anything wrong in the format or in the initialization?
>
> Thanks in advance!

It depends on what is in the file you want to read. Can you show what
it looks like?
[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 19:14:43 PDT 2025

Total time taken to generate the page: 0.00404 seconds