Re: Insight [message #14514 is a reply to message #13585] |
Fri, 26 February 1999 00:00  |
korpela
Messages: 59 Registered: September 1993
|
Member |
|
|
In article <36D67D6D.84DBD771@clinmed.gla.ac.uk>,
Dave Brennan <9147261b@clinmed.gla.ac.uk> wrote:
> I have a problem with Insight. When I try to load a 3D array into
> insight using Import File the program uses vast amounts of memory and
> swap space slowing the program until it grinds to a halt.
> The files are quite large (256x256x128 integer arrays), however, I have
> no problems working with this data in my own programs.
> Why is insight so memory intensive, and is there a way to combat this?
I'm not familiar with Insight, but since you posted to this group, I'm
assuming it's an analysis package written in IDL. If so you could
check out VARRAY at my web site, which allows files to be memory mapped
under IDL (Unix only).
The other potential problem is using data in a way that requires temporary
arrays to be created, rather than doing processing in place.
a=intarr(256,256,128)
b=intarr(256,256,128)
b=b+a ;creates a 16 MB temporary array.
b[*]=b[*]+a[*] ; doesn't use much additional memory
b=5*b+a*a ; creates 32 MB in temporary arrays,
b[*]=5*b[*]+a[*]*a[*] ; doesn't use much additional memory
Eric
--
Eric Korpela | An object at rest can never be
korpela@ssl.berkeley.edu | stopped.
<a href="http://sag-www.ssl.berkeley.edu/~korpela">Click for home page.</a>
|
|
|