Re: how can I read many columns and rows [message #92948 is a reply to message #92929] |
Thu, 31 March 2016 10:38   |
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
|
|
|