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 #92949 is a reply to message #92948] Thu, 31 March 2016 11:50 Go to previous messageGo to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
I would check your assumptions. For example, you previously told us that your array contained 30 columns, 20 rows. But for some reason you dimension your array fltarr(6,50), which has 300 elements instead of 600. Maybe that is why only half the column is being read?

On Thursday, March 31, 2016 at 1:38:05 PM UTC-4, Ali Gamal wrote:
> 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 13:56:02 PDT 2025

Total time taken to generate the page: 0.00246 seconds