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

Home » Public Forums » archive » Trouble reading unformatted f77 (unix) integers?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Trouble reading unformatted f77 (unix) integers? [message #4158] Wed, 10 May 1995 00:00 Go to previous message
Brett Hennig is currently offline  Brett Hennig
Messages: 3
Registered: May 1995
Junior Member
Here's the problem:
The F77 code:
open(unit=51,name='test1.dat',status='unknown',form='unforma tted')
write(51)1,2,3
close(51)
end

The idl code(that doesn't work):

openr,n,'test1.dat',/get_lun,/f77_unformatted
x=0 & y=0 & z=0
readu,n,x,y,z
print,x,y,z -----> 1 0 2
free_lun,n
end

Code that does:
openr,n,'test1.dat',/get_lun,/f77_unformatted
x=0 & y=0 & z=0 & dum1=0 & dum2=0
readu,n,x,dum1,y,dum2,z
print,x,dum1,y,dum2,z -----> 1 0 2 0 3
free_lun,n
end

is idl not interpreting the input correctly? or.. ? ?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Trouble reading unformatted f77 (unix) integers?
Next Topic: Re: Zeiger in IDL

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

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

Total time taken to generate the page: 0.00511 seconds