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 #64079 is a reply to message #45591] Thu, 27 November 2008 08:05 Go to previous messageGo to previous message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
Please correct me if I am wrong... it's from old souvenirs...

> perhaps it is an easy one, but I am having problems reading the
> following in IDL:
>
> open(11,file='file_name',form='unformatted')

open the file

> rewind 11

go to the beginning of the file

> do i3=1,np3
> write(11) ((delta(i1,i2,i3),i1=1,np1),i2=1,np2)
> end do

ok, that's the "fun" part. You have 3 loops here.
you could read it as follow:
for i3=1, np3
for i1 = 1, np1
for i2=1, np2
write(i1,i2,i3)

Please double check that I haven't inverter i1 and i3's loops...
Read http://docs.hp.com/cgi-bin/doc3k/B3150190022.12120/15 for more
explanations

Jean


> close(11)
>
> any ideas?
>
> Thanks!!
[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: Sat Nov 29 23:39:50 PST 2025

Total time taken to generate the page: 0.59218 seconds