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

Home » Public Forums » archive » Re: 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
Re: Trouble reading unformatted f77 (unix) integers? [message #4157 is a reply to message #4155] Wed, 10 May 1995 00:00 Go to previous message
mallozzi is currently offline  mallozzi
Messages: 60
Registered: August 1994
Member
> The F77 code:
> open(unit=51,name='test1.dat',status='unknown',form='unforma tted')
> write(51)1,2,3
> close(51)
> end

IDL's integers are 2 bytes long. I think when you write out the fortran
integers as above, it takes them to be INTEGER*4. i.e. 4 bytes. The byte
sizes MUST match when you write/read like this. Try defining the variables
you are going to read in IDL as LONGs, which are 4 byte integers.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Maker Interchange Format device driver
Next Topic: Trouble reading unformatted f77 (unix) integers?

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

Current Time: Sat Oct 11 21:07:11 PDT 2025

Total time taken to generate the page: 0.79770 seconds