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

Home » Public Forums » archive » Re: 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 #45586 is a reply to message #45585] Tue, 20 September 2005 07:59 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
savoie@nsidc.org writes:

> pro read_fortran
>
> ;; The data is 4 columns x ngr rows, but Fortran is stored row major.
> data = make_array( ngr2, 4, /float )
> openr, lun, "your_file_name", /GET_LUN
> readu, lun, data
> col_row_data = transpose( data )
>
> rhoc = col_row_data[ 0, * ]
> psi1 = col_row_data[ 1, * ]
> psi2 = col_row_data[ 2, * ]
> psi3 = col_row_data[ 3, * ]
>
> end
>
>
> Is this sort of what you're looking for?

I think he probably wants a function. ;-)

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Finding the path of the IDL executable
Next Topic: Resizing arrays

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

Current Time: Fri Oct 10 09:32:31 PDT 2025

Total time taken to generate the page: 1.36101 seconds