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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Reading in fortran files [message #3079] Fri, 04 November 1994 10:06
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!" | |
+----------------------------------------------------------- --+---------+
Re: Reading in fortran files [message #3080 is a reply to message #3079] Fri, 04 November 1994 08:29 Go to previous message
nowicki is currently offline  nowicki
Messages: 11
Registered: May 1993
Junior Member
In article <Cyqvqw.GqA@festival.ed.ac.uk>, ajh@met.ed.ac.uk (John Holland) writes:
> 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
>

John,

Check out the ASSOC command. We use that to access unformatted direct
access files we have created using Fortran on a DEC AXP running OVMS.

Good luck,

-Greg

/* Greg Nowicki | Mail Stop 401A | LIDAR Applications Group */
/* NASA Langley Research Center | Hampton, Virginia 23681-0001 */
/* Voice: (804) 864-2713 | FAX: (804) 864-7790 */
/* nowicki@tardis.larc.nasa.gov | My opinions and mine alone . . . */
  Switch to threaded view of this topic Create a new topic Submit Reply
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 08 17:38:05 PDT 2025

Total time taken to generate the page: 0.00590 seconds