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

Home » Public Forums » archive » Re: Cannot allocate memory!
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: Cannot allocate memory! [message #47042 is a reply to message #47039] Mon, 16 January 2006 13:09 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Sheldon writes:

> I cannot average each array because I want the average at each pixel
> for the 119 or so arrays.
> What I am toying with now is this creating 2 1215*1215 arrays and use
> one to carry the new arrays and one to keep the running total:
> t = make_array(col,row)
> sum = make_array(col,row)
> for i=0, n-1 do begin
> t = read_hdf(f,str)
> sum = temporary(sum) + temporary(t)
> endfor
> avg = sum/float(n)
> Basicly I need to keep IDL from making many of these arrarys. I have
> not tested this yet.
> Now you will really laugh at this but it is best that I can come up
> with with what little experience I have using IDL. I am reading some
> older problems sent to the group but I am not done yet. Any comments?

I think this is more or less what Craig had in mind.
At least it is tending in the right direction. :-)

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Terra MODIS Orthorectified Imagery
Next Topic: Update IDL Widget from C++

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

Current Time: Fri Oct 10 04:12:32 PDT 2025

Total time taken to generate the page: 0.72084 seconds