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

Home » Public Forums » archive » reading unformatted binary data (WRITEU) with FORTRAN routine
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: reading unformatted binary data (WRITEU) with FORTRAN routine [message #2618 is a reply to message #2617] Thu, 11 August 1994 15:04 Go to previous messageGo to previous message
kucera is currently offline  kucera
Messages: 7
Registered: June 1994
Junior Member
In article <11AUG199413273078@stars.gsfc.nasa.gov>, kucera@stars.gsfc.nasa.gov (Terry Kucera) writes...
> Well, this is sort of a FORTRAN question, but it has an IDL angle,
> so maybe someone here can help me.
> I've stored an array of floating points in an unformated binary data file
> using WRITEU in IDL. Can anyone tell me how to read the data back using
> FORTRAN? Terry Kucera

Thanks for the replies. We have found that the following works (on our
DEC Alpha, anyway)
In IDL: open the file with OPENW,unit,'filename',/segmented & WRITEU,data
Then in FORTRAN,
OPEN(UNIT=15,FILE='filename',STATUS='OLD',READONLY,
1 access='sequential',form='unformatted')
READ(15) DATA
where DATA has been defined ahead of time, of course.
Terry
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Widget colors under X windows
Next Topic: 3D renderings (medical) in IDL?

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

Current Time: Wed Oct 08 15:56:17 PDT 2025

Total time taken to generate the page: 0.00415 seconds