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

Home » Public Forums » archive » reading data with structures
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 data with structures [message #3061] Mon, 07 November 1994 15:49
tonym is currently offline  tonym
Messages: 14
Registered: May 1994
Junior Member
I am having problems reading FORTRAN unformatted data
with idl arrays.
For example, the following works fine:

data = replicate ( structure_template, nrecords )
;
for i=0L,long (nrecords-1) do begin
readu,unit,structure_template
data (i) = structure_template
endfor

But the following doesn't:

readu,unit,data

In this case, I get an "End of file encountered" error.

What gives?

-Tony Mannucci
tonym@lurleen.jpl.nasa.gov
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Reading unformatted files using structure arrays
Next Topic: NR_ODEINT anyone?

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

Current Time: Thu Oct 09 23:15:52 PDT 2025

Total time taken to generate the page: 0.64513 seconds