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

Home » Public Forums » archive » reading files with date- and time - columns
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
reading files with date- and time - columns [message #23914] Mon, 26 February 2001 03:09 Go to previous message
Zeschke is currently offline  Zeschke
Messages: 2
Registered: December 2000
Junior Member
Hallo,

I have files for example in such a format:

File : s.log
;DATE TIME n x VALUES
23.01.2001 08:39:41 21 21.4 0
23.01.2001 08:40:16 21 21.3 0
23.01.2001 08:40:51 21 21.3 0
23.01.2001 08:41:26 21 21.4 0

or such a format:

;DATE TIME n x VALUES
2/23/2001 08:39:41.643 34.660
2/23/2001 08:49:41.456 34.960


I cannot find a solution for reading the date- and timeformat. My best
result was this :

IDL> openr,1,'s.log'
IDL> readf,1,format='(C(CDI3,".",CMOI3,".",CYI4,"
",CHI2,":",CMI2,":",CSI2))',x
IDL> print,x
2.45193e+06
IDL> CALDAT, x, Month, Day, Year, Hour, Minute, Second
% Compiled module: CALDAT.
IDL>
IDL> print,Month, Day, Year, Hour, Minute, Second
1 23 2001 0 0 0.00000000
IDL> print,!version
{ alpha vms vms 5.4 Sep 25 2000 32 32}
IDL> close,1

But where are the hours, minutes and seconds.


Thanks in advance
Thomas Zeschke
[Message index]
 
Read Message
Read Message
Previous Topic: Reading files
Next Topic: IDL Programming Techniques, 3rd edition

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

Current Time: Fri Oct 10 13:25:26 PDT 2025

Total time taken to generate the page: 0.79787 seconds