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

Home » Public Forums » archive » reading in tab-separated string data
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
reading in tab-separated string data [message #79868] Wed, 18 April 2012 22:53
timbovaird is currently offline  timbovaird
Messages: 1
Registered: April 2012
Junior Member
I'm unable to read an array of strings into IDL. Here's what I'm
trying to do.

OPENW,lun,'table.dat',/get_lun,WIDTH=500
for i=0,numlines-1 do
PRINTF,lun,strjoin(data[*,i],string(9b)) ;separate strings in row by
tabs
CLOSE,lun

OPENR,lun,'table.dat',/get_lun
READF,lun,data
CLOSE,lun

The .dat file opens in excel fine but I always get "READF: End of file
encountered." when I try to read the table back into IDL. I have a
similar table which uses floats instead of strings and it works fine
so I'm not sure what is causing the problem.

Thanks, Tim.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: speed-up computation of kernel-based "statistics"
Next Topic: Borrowed license and batch mode

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

Current Time: Wed Oct 08 11:32:56 PDT 2025

Total time taken to generate the page: 0.00463 seconds