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

Home » Public Forums » archive » Re: Reading in fortran files
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: Reading in fortran files [message #3079] Fri, 04 November 1994 10:06 Go to previous message
sjt is currently offline  sjt
Messages: 72
Registered: November 1993
Member
John Holland (ajh@met.ed.ac.uk) wrote:
: Sorry if this is an obvious question but ....

: Is there a way of reading in unformatted direct access fortran files, and if
: so, how? I normally use unformatted serial access fortran files, but it would
: be quite useful to be able to do it this way too.

: Thanks for your help

: John

Both are do-able on unix or VMS.

Infile was a fortran direct access file:

VMS:
openr,ilu,/get, file, lrecl ; lrecl is length of record in bytes

Unix:
openr, ilu, /get, file ; You need to know the length of record
; you were using in FTN.

Infile was fortran sequential file:

VMS:
openr, ilu, /get, file, /segmented

Unix:
openr, ilu, /get, file, /f77_unformatted

In all cases you then just use readu in the usual way.


--
+------------------------+---------------------------------- --+---------+
| James Tappin, | School of Physics & Space Research | O__ |
| sjt@xun8.sr.bham.ac.uk | University of Birmingham | -- \/` |
| "If all else fails--read the instructions!" | |
+----------------------------------------------------------- --+---------+
[Message index]
 
Read Message
Read Message
Previous Topic: Help with co-ordinate conversions...
Next Topic: Remember, IDL Ver 3.5, no handlers. must use IDL 3.6

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

Current Time: Wed Oct 15 15:59:01 PDT 2025

Total time taken to generate the page: 2.88142 seconds