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

Home » Public Forums » archive » Reading fortran
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 fortran [message #64080 is a reply to message #45591] Thu, 27 November 2008 08:04 Go to previous messageGo to previous message
Peter Clinch is currently offline  Peter Clinch
Messages: 98
Registered: April 1996
Member
Andres wrote:

> perhaps it is an easy one, but I am having problems reading the
> following in IDL:
>
> open(11,file='file_name',form='unformatted')
> rewind 11
> do i3=1,np3
> write(11) ((delta(i1,i2,i3),i1=1,np1),i2=1,np2)
> end do
> close(11)
>
> any ideas?

IDL is a language in itself: it isn't FORTRAN, and it doesn't read FORTRAN.

So you'll need to rewrite the above in IDL. It will be quite similar,
but compilers don't do "similar" :-(

Look at OPENU to read unformatted stuff and FOR to do DO loops.

Pete.
--
Peter Clinch Medical Physics IT Officer
Tel 44 1382 660111 ext. 33637 Univ. of Dundee, Ninewells Hospital
Fax 44 1382 640177 Dundee DD1 9SY Scotland UK
net p.j.clinch@dundee.ac.uk http://www.dundee.ac.uk/~pjclinch/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: REGRESS Question
Next Topic: Re: IDL Programming Techniques, 3rd edition

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

Current Time: Fri Oct 10 02:38:50 PDT 2025

Total time taken to generate the page: 1.59793 seconds