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

Home » Public Forums » archive » Re: large arrays and transpose
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: large arrays and transpose [message #31349 is a reply to message #31348] Mon, 01 July 2002 08:18 Go to previous message
Don J Lindler is currently offline  Don J Lindler
Messages: 19
Registered: April 2001
Junior Member
>
> I have an array like so:
>
> output = intarr(100, 3600,1800)
>
> At the end of my program, I would like to do this:
> output = TRANSPOSE(output, [1, 2, 0])
>
> Problem is that the array is too large, and I am "unable to allocate
memory
> to make array."
>

You might try something like this:

openw,1,'temp'
for i=0,99 do writeu,1,output(i,*,*)
close,1
output = reform(output,3600,1800,100,/overwrite) ;reuse same memory
openr,1,'temp'
readu,1,output
close,1

Assumming output fits in memory, this should not be too bad. If you do not
have
enough memory, you will get alot of swapping during the write.

Don Lindler
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: write_jpeg and TVRD()
Next Topic: structure use

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

Current Time: Fri Oct 10 20:25:58 PDT 2025

Total time taken to generate the page: 0.56357 seconds