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 #39119 is a reply to message #39116] Wed, 21 April 2004 12:38 Go to previous messageGo to previous message
wmconnolley is currently offline  wmconnolley
Messages: 106
Registered: November 2000
Senior Member
"Andry William (Please remove \".spam\")" <andry> wrote:
> ------------------------ test.datos ----------------------------
> |020922 10:00:00 | 339| 348| 63| 356| 400| 88|
> ------------------------ End data ------------------------------

> lineas= LONG(lineas[0])
> data= INTARR(11, lineas)

I count 10 not 11?

> OPENR, 1, flnm
> READF, 1, data, format= '(1x,i6,3(1x,i2),4x,7(1x,i6))'

should be 6 not 7(ix,i6)?

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.

-W.

--
William M Connolley | wmc@bas.ac.uk | http://www.antarctica.ac.uk/met/wmc/
Climate Modeller, British Antarctic Survey | Disclaimer: I speak for myself
I'm a .signature virus! copy me into your .signature file & help me spread!
[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 22:42:09 PDT 2025

Total time taken to generate the page: 1.27999 seconds