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

Home » Public Forums » archive » Re: Problem to read some data.
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: Problem to read some data. [message #68454 is a reply to message #68453] Fri, 23 October 2009 02:26 Go to previous message
pfp is currently offline  pfp
Messages: 12
Registered: July 2009
Junior Member
On Oct 23, 4:59 am, Dav_Poreh <d.po...@gmail.com> wrote:
> Folks
> I want to read some data with *.dat format with unknown number of
> columns and rows. I tried to read with*DDREAD.pro* but it does not
> work. Data for each file is like this:
>
> 260.559844971  4.000000000  0.390625000   0.460937500 ……..
> 260.559844971  4.000000000  0.382812500 0.318359375……..
> 260.559844971  4.000000000  0.414062500 0.439453125 ……..
> ……
> …..
> .….
> Actually I don’t know the number of rows and columns (but definitely
> number of rows is less than columns). Does anyone have experience to
> how read this kind of files?
> Any help highly will be appreciated.
> Cheers

Try something like

a=read_ascii('file.dat')
sz=size(a.(0),/dim)
ncols=sz[0]
nrows=sz[1]

ddread is not a built-in routine, so when you mention it you should
say where it is from. Also, "*.dat format" means nothing.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: What is the problem ?
Next Topic: plot some data with a legend

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

Current Time: Sat Oct 11 13:19:57 PDT 2025

Total time taken to generate the page: 0.56105 seconds