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

Home » Public Forums » archive » read files with time column
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
read files with time column [message #47847] Wed, 08 March 2006 18:16 Go to next message
jg.guerra is currently offline  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 Go to previous message
enod is currently offline  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 Go to previous message
Haje Korth is currently offline  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
>
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: contouring irregular sparse data on a sphere
Next Topic: Re: matching 2 grids

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

Current Time: Wed Oct 08 15:16:25 PDT 2025

Total time taken to generate the page: 0.00520 seconds