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 #39091 is a reply to message #39090] Fri, 23 April 2004 11:35 Go to previous messageGo to previous message
Andry William (Please is currently offline  Andry William (Please
Messages: 11
Registered: March 2004
Junior Member
>>> ------------------------ 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))'
>
> Aha, L'inspiration, or something.
Bravo,
>
> 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).

This is just the command I am missing. I have never thought I
need to write 2 brackets in order to be able to read the whole
data with the specified format. It works (as it should be)....!!! :)
I have been looking for this solution for very long time.

Thank you very much for all of the suggestion.

Any explanation for these extra brackets? (for IDL, ifc, ...)

Cheers,

A.
[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: Sat Oct 11 10:22:38 PDT 2025

Total time taken to generate the page: 0.32313 seconds