| unformatted reads in fortran? [message #14402] |
Wed, 24 February 1999 00:00 |
Richard G. French
Messages: 65 Registered: June 1997
|
Member |
|
|
Can someone save my sanity and tell me the correct syntax for
opening and reading a file in fortran, when the file was
written in IDL with the /F77_UNFORMATTED keyword set and writeU
was used? I keep getting
forrtl: severe (37): inconsistent record length
errors. Thanks! No FORTRAN manual on line, unfortunately.
Dick French
|
|
|
|
| Re: unformatted reads in fortran? [message #14405 is a reply to message #14402] |
Tue, 23 February 1999 00:00  |
Andy Loughe
Messages: 174 Registered: November 1995
|
Senior Member |
|
|
You should probably open a sequential access file like so...
open(unit=70, file='filename', status='old', access='sequential')
read (70) data
Andrew F. Loughe | afl@cdc.noaa.gov
University of Colorado, CIRES Box 449 | http://cdc.noaa.gov/~afl
Boulder, CO 80309-0449 | phn:(303)492-0707 fax:(303)497-7013
------------------------------------------------------------ ---------------
"I do not feel obliged to believe that the same God who has endowed us with
sense, reason, and intellect has intended us to forego their use." -Galileo
On Wed, 24 Feb 1999, Richard G. French wrote:
> Can someone save my sanity and tell me the correct syntax for
> opening and reading a file in fortran, when the file was
> written in IDL with the /F77_UNFORMATTED keyword set and writeU
> was used? I keep getting
> forrtl: severe (37): inconsistent record length
> errors. Thanks! No FORTRAN manual on line, unfortunately.
> Dick French
>
>
|
|
|
|