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

Home » Public Forums » archive » Re: how to handle 3-D data
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: how to handle 3-D data [message #3376 is a reply to message #3373] Wed, 18 January 1995 02:20 Go to previous messageGo to previous message
Fergus Gallagher is currently offline  Fergus Gallagher
Messages: 41
Registered: January 1995
Member
surinder@eng.umd.edu (Surinder P. Singh) wrote:
>
> I get data out put from
> FORTRAN 77, a function
> F(i,j,k) .
>
> What is the best way to write this data and read by idl ?
> Can i increse speed of reading and writing by unformatted data ?
>

Yes - unformatted reading & writing is MUCH faster.
If you're on unix, remember to use the /F77_UNFORMATTED keyword (F77
records have extra longwords at both ends.

In F77 you can write

open(unit,"data.dat",form="unformatted",....)
write(unit) F

and read with

openr,unit,/get_lun,/f77_unformatted
a = fltarr(100,100,100) ; for example
readu,unit,a
free_lin,unit


See IDL UG, 17-44 ff

Fergus
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: [Q] How does one EXPAND an ARRAY in IDL ? i.e opposite of sub-array
Next Topic: Set WIDGET_LIST value keeping TOP position fixed

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

Current Time: Sat Oct 11 05:23:45 PDT 2025

Total time taken to generate the page: 0.73096 seconds