Re: Associated reads on Unix/f77 binaries [message #5603] |
Mon, 22 January 1996 00:00  |
hahn
Messages: 108 Registered: November 1993
|
Senior Member |
|
|
franz@bikini.gsfc.nasa.gov (Bryan A. Franz) wrote:
> Has anybody managed to do associated reads on files generated by f77 under
> Unix ?
> I have RTFM, which states that you can't do associated reads on files
> generated from FORTRAN 77 under Unix. Apparently, f77 sticks a longword
> containing the number of bytes before and after each logical record. IDL's
> readu accounts for the extra bytes, but assoc does not. It seems to me that I
> should still be able to do the associated reads, if I just added a dummy
> longword on either side of my datastructure, but it does not seem to work.
On Sun, 21 Jan 1996 22:38:33, you wrote:
> Has anybody managed to do associated reads on files generated by f77 under
> Unix ?
> I have RTFM, which states that you can't do associated reads on files
> generated from FORTRAN 77 under Unix. Apparently, f77 sticks a longword
> containing the number of bytes before and after each logical record. IDL's
> readu accounts for the extra bytes, but assoc does not. It seems to me that I
> should still be able to do the associated reads, if I just added a dummy
> longword on either side of my datastructure, but it does not seem to work.
Fortran allows to write binary data without adding the record
length long word: The output file must be opened as direct access
file which implies constant record length. And this is what is
actually expected by IDL when ASSOC a piece of data to a varible.
Hope this help
Norbert Hahn
|
|
|