read files with time column [message #47847] |
Wed, 08 March 2006 18:16  |
jg.guerra
Messages: 1 Registered: March 2006
|
Junior Member |
|
|
Hi,...
I am getting into IDL and I'd like to plot some data that I have.
The files are called m_010103 where the numbers are ddmmyy, I have a
whole year data:
the data looks like; 00:10:10 3.2 4.5 2.4 xxx xxx xxx,
I'd like to read all the data and plot them, how can I do it?
cheers
|
|
|
Re: read files with time column [message #47979 is a reply to message #47847] |
Thu, 09 March 2006 06:30  |
enod
Messages: 41 Registered: November 2004
|
Member |
|
|
Could I know what is supposed to be the X axis? Do you want to
plot data vs. day of the year? Or you want a plot with a X-axis of
time in each day?
Tian
jg.guerra@telefonica.net wrote:
> Hi,...
> I am getting into IDL and I'd like to plot some data that I have.
> The files are called m_010103 where the numbers are ddmmyy, I have a
> whole year data:
>
> the data looks like; 00:10:10 3.2 4.5 2.4 xxx xxx xxx,
> I'd like to read all the data and plot them, how can I do it?
>
> cheers
|
|
|
Re: read files with time column [message #47982 is a reply to message #47847] |
Thu, 09 March 2006 05:12  |
Haje Korth
Messages: 651 Registered: May 1997
|
Senior Member |
|
|
You should look into formatted input and specify the data format using the
FORMAT keyword to the READF routine. For example your line could be read as
READF, unit,hh,mm,ss,aa,bb,cc,format='(i2,1x,i2,1x,i2,f4.1,f4.1,f4. 1)'. This
can also be shortened to format='(2(i2,1x),i2,3f4.1)'. Of course, this does
not consider those "xxx" numbers.
Haje
<jg.guerra@telefonica.net> wrote in message
news:1141870589.384010.125410@v46g2000cwv.googlegroups.com.. .
> Hi,...
> I am getting into IDL and I'd like to plot some data that I have.
> The files are called m_010103 where the numbers are ddmmyy, I have a
> whole year data:
>
> the data looks like; 00:10:10 3.2 4.5 2.4 xxx xxx xxx,
> I'd like to read all the data and plot them, how can I do it?
>
> cheers
>
|
|
|