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

Home » Public Forums » archive » Reading unformatted files using structure arrays
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 unformatted files using structure arrays [message #3063] Mon, 07 November 1994 15:37
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: finite element analysis
Next Topic: reading data with structures

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

Current Time: Thu Oct 09 15:59:11 PDT 2025

Total time taken to generate the page: 0.56202 seconds