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

Home » Public Forums » archive » how can I read many columns and rows
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: how can I read many columns and rows [message #92948 is a reply to message #92929] Thu, 31 March 2016 10:38 Go to previous messageGo to previous message
Ali Gamal is currently offline  Ali Gamal
Messages: 98
Registered: June 2013
Member
On Tuesday, March 29, 2016 at 8:21:02 PM UTC+2, Ali Gamal wrote:
> Hi everyone,
> I have data file contains 30 column, every column contains 20 row. How can I read this file ?

when I run my IDL program
;;;;;;;;;;;;;;;;;;;;;;;
a = fltarr(6, 50)
OPENR, 1, 'H:\a.dat'
READF, 1, a
CLOSE, 1
column5=a[5,*]
print,column5
end
;;;;;;;;;;;;;;;;;;;;;
it does not print whole column 6 but it print half of column then repeat it as
3910.30
3939.00
3987.40
4052.60
4119.90
4187.30
4255.50
4316.80
4381.10
4448.40
4505.70
4568.90
4624.30
4680.70
4755.30
4846.50
4963.10
5124.50
5308.60
5564.50
6038.90
6617.80
7283.90
8065.40
8500.00
................ it repeat again
3910.30
3939.00
3987.40
4052.60
4119.90
4187.30
4255.50
4316.80
4381.10
4448.40
4505.70
4568.90
4624.30
4680.70
4755.30
4846.50
4963.10
5124.50
5308.60
5564.50
6038.90
6617.80
7283.90
8065.40
8500.00
...........
what is the problem
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Response function of a detector in IDL
Next Topic: Coyote Returns

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

Current Time: Wed Oct 08 11:34:23 PDT 2025

Total time taken to generate the page: 0.00405 seconds