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 #68565 is a reply to message #68263] Mon, 02 November 2009 14:31 Go to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Nov 2, 8:17 pm, "A.R." <alrom...@gmail.com> wrote:
> On Oct 14, 1:57 pm, Mark <mark.h...@gmail.com> wrote:
>
>
>
>> On Oct 13, 10:58 pm, Dorthe Wildenschild
>
>>> Thanks for trying to help, - I really don't know what's wrong, but
>>> instead of working out the kinks of IDL, I may just write the volume
>>> as 3 or 4 smaller sections... - a bit sad though.
>>> Cheers,
>>> Dorthe
>
>> If that's enough to make you sad, you must be new around these parts.
>> My word, I could tell you stories that could make you weep. I'm green
>> with envy that you have a system on which you could even consider
>> writing a 50 GiB file in one go!
>
>> WRITEU doesn't add any leading or trailing bytes by default, so you
>> can write it in as many chunks as you like, as long as you get the
>> order right. Just loop over the outer (final) dimension.
>
> Hello,
>
> I had a similar problem that I posted to an earlier discussion:http://groups.google.com/group/comp.lang.idl-pvwa ve/browse_thread/thr...
>
> I was also trying to writeu to a volume with larger than 2^31
> elements, during which IDL quit due to a segmentation fault. The best
> answer I got was that it's just something finnicky with IDL, and that
> I should write a bug report to ITTVIS.  As a workaround, I wrote a
> small piece of code which writes my volume in individual slices to one
> large file:
>
> pro write_bindatxl,fname,volume, nz
> close,10
> openw,10,fname
> for i = 0,(nz-1) do writeu,10,volume[*,*,i]
> close,10
> end
>
> 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 . . .

Why can't you read it with readu the same way you used writeu?
[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:35:01 PDT 2025

Total time taken to generate the page: 2.08148 seconds