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

Home » Public Forums » archive » Import .csv files
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Import .csv files [message #45236] Thu, 18 August 2005 08:18
S.Cogliati is currently offline  S.Cogliati
Messages: 3
Registered: August 2005
Junior Member
Hallo, I have a little problem to import some ".csv" data file,
these files are output from another Idl routine and they contain one
record header whit the columns title while the other fields are a
numerical matrix of 5 columns and 751 records.
I always performed it in this way:

str=''
tmp=fltarr(5,751)
openr,lun, 'file_name',/get_lun
readf,lun,str
readf,lun,tmp
free_lun,lun
.......

But in this case Idl stops at the 'readf,lun,tmp' instruction with
the following error message: "% READF: End of file encountered. Unit:
102, File: C:\029_0730_trifogli_ref.csv'

Can you advise me why happen this and suggest me the right idl code for
import these files?

Thank you
Sergio

Cogliati.sergio@fastwebnet.it
[Message index]
 
Read Message
Previous Topic: Re: Subscript arrays for ROIs
Next Topic: DICOM Radiotherapy prescriptions

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

Current Time: Sat Oct 11 04:02:50 PDT 2025

Total time taken to generate the page: 1.60054 seconds