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

Home » Public Forums » archive » Reading in date & time from csv file
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: Reading in date & time from csv file [message #88619 is a reply to message #88618] Sun, 18 May 2014 23:59 Go to previous messageGo to previous message
Fabzi is currently offline  Fabzi
Messages: 305
Registered: July 2010
Senior Member
On 19.05.2014 03:40, justinclouds wrote:
> This would work. However, the output to:
>
> time=string(data.field01[*])
>
> is:
>
> IDL> print, time[0]
> 2014.0000
>
> and the value in the csv file is 2014_05_12_18_39_33.194
>
> So I need to fix how the data is read into 'time' vector.
>
> Any ideas?
>
> - D

It does not make much sense. If I have a csv file which looks like this:

2014_05_12_18_39_33.194, 12.25
2014_05_13_18_39_33.194, 12.25

and I read it with read_csv i get:

IDL> data = READ_CSV('test.csv')
IDL> print, data.FIELD1[0]
2014_05_12_18_39_33.194

then I would do what mMtthew said and maybe use the julday() function

Cheers,

Fabien
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: hot pixels
Next Topic: The refresh method and relative coordinate positioning

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

Current Time: Wed Oct 08 15:28:30 PDT 2025

Total time taken to generate the page: 0.00456 seconds