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

Home » Public Forums » archive » Re: Trouble writing very large files
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: Trouble writing very large files [message #62668 is a reply to message #62650] Sat, 27 September 2008 15:16 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Vince Hradil <vincehradil@gmail.com> writes:
> I want to write a very large array to a file. I'm trying:
>
> array = intarr(640,640,1073,15) ;; 13,185,024,000 bytes!
>
> openw, lun, 'foo.dat', /get_lun
> writeu, lun, array
> free_lun, lun
>
> IDL crashes when the writeu fires up.

Wait, if IDL crashes, how were you able to check the file pointer
location afterward??? If you mean that IDL reported an error but
continued to run, what was the error?

Craig


>
> print, !version
> { x86_64 Win32 Windows Microsoft Windows 7.0 Oct 25 2007 64
> 64}
>
> The pointer seems to expand okay:
>
> IDL> point_lun, -lun, pos
> IDL> help, pos
> POS LONG = 0
> IDL> point_lun, lun, 640ll * 640ll * 1073ll * 15ll * 2ll
> IDL> point_lun, -lun, pos
> IDL> help, pos
> POS LONG64 = 13185024000
> IDL> point_lun, lun, 0
> IDL> point_lun, -lun, pos
> IDL> help, pos
> POS LONG = 0

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: cbmarkwardt+usenet@gmail.com
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: HDF question - how to make a copy of the structure?
Next Topic: Re: block fill image

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

Current Time: Sat Oct 11 00:11:30 PDT 2025

Total time taken to generate the page: 0.80017 seconds