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

Home » Public Forums » archive » Reading in a non-rectangular array
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 in a non-rectangular array [message #50897] Wed, 25 October 2006 10:41
willettk is currently offline  willettk
Messages: 20
Registered: October 2006
Junior Member
G'day,

I'm trying to read in a data table to IDL that is (gasp)
non-rectangular (thanks very much to the astronomers involved). The
data is in an ASCII file, but certain cells will simply be blank if
there was no data for that particular value (so out of 6 columns, any
given row might have 0-6 actual values). Reading this into IDL, though,
doesn't seem to work according to Hoyle. This is what I have tried (and
received):

___________

fname = 'table1.dat'
openr, lun1, fname, /get_lun
nlines = file_lines(fname)
data = fltarr(6, nlines)
readf, lun1, data

% READF: Input conversion error. Unit: 100
File: /Users/willettk/table1
% Execution halted at: $MAIN$

___________

Any ideas that might help me read the data? Many thanks, if so.
[Message index]
 
Read Message
Previous Topic: Visibility / viewshed algorithm ?
Next Topic: Re: passing multiple commands to idl from command line

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

Current Time: Sat Oct 11 11:44:19 PDT 2025

Total time taken to generate the page: 0.87949 seconds