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 
Return to the default flat view Create a new topic Submit Reply
Reading data with structures [message #3062] Mon, 07 November 1994 16:10 Go to previous message
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
Tony Mannucci Jet Propulsion Laboratory
tonym@lurleen.jpl.nasa.gov 4800 Oak Grove Drive
M/S 238-600
Voice: (818)354-1699 Fax: (818)393-4965 Pasadena, CA 91109
[Message index]
 
Read Message
Read Message
Previous Topic: PostScript Dump
Next Topic: Shaded fills with POLYFILL on PostScript

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

Current Time: Sat Oct 11 04:25:59 PDT 2025

Total time taken to generate the page: 0.71935 seconds