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 #39117 is a reply to message #39116] Wed, 21 April 2004 17:35 Go to previous messageGo to previous message
Andry William (Please is currently offline  Andry William (Please
Messages: 11
Registered: March 2004
Junior Member
wmc@bas.ac.uk wrote:
>> ------------------------ test.datos ----------------------------
>> |020922 10:00:00 | 339| 348| 63| 356| 400| 88|
>> ------------------------ End data ------------------------------
>
>> data= INTARR(11, lineas)
>>READF, 1, data, format= '(1x,i6,3(1x,i2),4x,7(1x,i6))'
>
> I count 10 not 11?
> should be 6 not 7(ix,i6)?

You are right. It was just a mistyping on the e-mail editor. The
original code has the above variables.
>
> BTW, you could start of with
>
> spawn,"perl -i -pe 's/|:/ /g' test.datos"
>
> which would change your : and |'s into spaces, whereupon your
> reading could be simplified.

Does it make some difference if I have "|" or ":" instead of
space?

On the other side, the data I have come from some other database
software and generated by some other people with a lot more data.
I am also not supposed to alter the data since after my checking
I should pass it to another program (with the original format),
pretty picky (I agree).

Thanks again for any input.

Andry
[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 07:23:08 PDT 2025

Total time taken to generate the page: 0.79803 seconds