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

Home » Public Forums » archive » Re: A very simple FORMAT question
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: A very simple FORMAT question [message #39092 is a reply to message #39091] Fri, 23 April 2004 04:18 Go to previous messageGo to previous message
Chris Lee is currently offline  Chris Lee
Messages: 101
Registered: August 2003
Senior Member
> In article <4086EE70.9070707@ya.com.spam>, "Unknown" <andry@ya.com.spam>
> wrote:
>
>> Hi all,
>> ------------------------ test.datos ----------------------------
>> |020922 10:00:00 | 339| 348| 63| 356| 400| 88| |020922
>> 10:00:00 | 339| 348| 63| 356| 400| 88|
>> -----------------
>> SPAWN, "wc -l "+ flnm+ " | awk '{print $1}'", lineas
>> ...
>> READF, 1, data, format= '(1x,i6,3(1x,i2),4x,7(1x,i6))'
> Hi,
>

Aha, L'inspiration, or something.

READF, 1, data, format= '(1x,i6,3(1x,i2),4x,6(1x,i6))'

does NOT work

READF, 1, data, format= '((1x,i6,3(1x,i2),4x,6(1x,i6)))'

does work fine (note the extra brackets).

It's not an IDL bug either, Fortran (at least the Intel and f77 compiler)
both have the same behaviour. I do think it's bizzare that the everything
after the repeat statement (i.e 3(1x,i2)) is repeated in the READ, but
not the bit before it.

Chris.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: simplify a polyline?
Next Topic: Newbie needs help getting mpi_plot going

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

Current Time: Thu Oct 09 23:06:45 PDT 2025

Total time taken to generate the page: 1.20070 seconds