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

Home » Public Forums » archive » Read data in more than one column
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: Read data in more than one column [message #91717 is a reply to message #91710] Fri, 14 August 2015 06:58 Go to previous messageGo to previous message
joyrles1996 is currently offline  joyrles1996
Messages: 27
Registered: August 2015
Junior Member
Em quinta-feira, 13 de agosto de 2015 23:42:50 UTC-3, Paulo Penteado escreveu:
> On Thursday, August 13, 2015 at 9:08:16 AM UTC-7, Joyrles Fernandes wrote:
>> Em quinta-feira, 13 de agosto de 2015 12:50:35 UTC-3, Paul van Delst escreveu:
>>> On 08/13/15 11:24, Joyrles Fernandes wrote:
>>>> I have datas in a file with 26 columns. In first columns there are
>>>> day
>>>> of year, in second there are dates and in the remaining columns there
>>>> are values of temperature. I don't get read these datas starting third
>>>> columns. Can you help me, please?
>>>
>>> Not enough information to really help.
>>>
>>> How about you:
>>> 1) Show a line or two of your input data file.
>>> 2) the code you are currently using to read the data.
>>>
>>> ?
>>
>> file='C:\Users\Joyrles\dados.txt'
>>
>> dados=read_ascii(file, data_start=1)
>>
>> dados=dados.(0)
>> date=dados[0,*]
>> day=[1,*]
>> temp=[?,*]
>>
>> I do not know how to put to read the rest of the columns missing and all lines for me to withdraw temperatures.
>
> Still hard to say, without looking at a few lines from your file.

my datas are organized in columns. In first column i have days of year, with 355 lines. In second column I have dates, with 355 lines of datas and from third i have 24 columns with temperature, with 355 lines.
1 01/01/2010 13,4 22,3 ... 353
2 02/01/2010 21 321 ... 245
. . . . .
. . . . .
. . . . .
355 21/12/2010 15 124 ... 193,3

I am getting just to read the first, the second and the tirdh column, but i need to create a array with all columns starting of third, obtain a array tem[24,355], but I am starting with IDL. I am sorry for my english, I am brasilian.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Rant about axis range defaults using overplot in object graphics
Next Topic: Re: Read data in more than one column

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

Current Time: Wed Oct 08 19:57:25 PDT 2025

Total time taken to generate the page: 0.00479 seconds