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

Home » Public Forums » archive » writing large 3D data file fails
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: writing large 3D data file fails [message #68560 is a reply to message #68263] Mon, 02 November 2009 17:51 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
A.R. writes:

> So, this will work to write your data to one file, but the next issue
> crops up if you want to re-open it and work with it again. Trying to
> 'readu' a volume with more than 2^31 elements also crashes IDL due to
> a segmentation fault.
>
> If you can figure out how to re-open it, then you'll really make my
> day! Still can't figure that one out . . .

If you can get by reading it a slice at a time
(from anywhere in the stack), then the Associated
Variable method is the way to go. Suppose each
"slice" is a 4000 by 5000 floating point array:

Openr, lun, 'myfile.dat', /Get_Lun
data = Assoc(lun, FltArr(4000,5000))

Now, if you wanted the 35th slice:

slice = data[34]

When you are done with it, just close it.

Free_Lun, lun

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: progressbar update problem
Next Topic: Where is the error in this DCT-approach?

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

Current Time: Fri Oct 10 22:39:16 PDT 2025

Total time taken to generate the page: 0.31974 seconds