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

Home » Public Forums » archive » idl writeu and fortran...
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
idl writeu and fortran... [message #35730] Thu, 10 July 2003 22:34 Go to previous message
j oishi is currently offline  j oishi
Messages: 2
Registered: July 2003
Junior Member
hi,

i know i'm stepping into murky waters here, but i have a question about
using idl to write unformatted binary files for fortran. when i write a
single record, ie

openw,unit,'blah.dat',/f77_unformatted,/get_lun
d=fltarr(10)
writeu,unit,d
free_lun(unit)

and then read it in in f77, everything is fine. when i try to add multiple
records to the same file, everything goes to hell:

openw,unit,'blah2.dat',/f77_unformatted,/get_lun
d=fltarr(10)
e=fltarr(10,10)
writeu,unit,d
writeu,unit,e
free_lun(unit)

now, in this second example, i can read the first record out of blah2.dat,
but trying to get e (the second record) out, causes the following error:

data [14:14]$ ./readbin
start: end of file
apparent state: unit 12 named aa0000.D
lately reading sequential unformatted external IO
Abort trap

i've tried this using two versions of idl on two different architectures,
compilers, etc. (reading and writing, that is...not trying to cross
platform with binary files)

can anyone provide insight?

thanks,

j oishi
[Message index]
 
Read Message
Read Message
Previous Topic: Re: idl writeu and fortran...
Next Topic: Re: IDL Virtual Machine information

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

Current Time: Sat Oct 11 10:27:41 PDT 2025

Total time taken to generate the page: 0.07924 seconds