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

Home » Public Forums » archive » Unable to 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: unable to allocate memory [message #80201 is a reply to message #73567] Tue, 22 May 2012 17:10 Go to previous messageGo to previous message
Russell Ryan is currently offline  Russell Ryan
Messages: 122
Registered: May 2012
Senior Member
On May 22, 8:33 am, greg.a...@googlemail.com wrote:
> Insert a line:
>
>   ec3=0
>
> just before the problem line

This is because you don't have enough memory (RAM) on your computer to
do this. Roughly speaking a 10k x 10k image is around 0.5 Gb.
You're loading a 1k x 1k x 300 image into memory (which is roughly 3
10k x 10k images in size), then you're allocating two more variables
that is equal in size. Then you need at least ~4.5 Gb of memory.

Do you really need all that data in memory? I'm an astronomer, and it
looks like you're reading a dark image and a bunch of images
(presumably to reduce). If so, then let me suggest you work on each
image in serial. So read the calib files (darks, flats, biases,
etc.). Then load image 1, do the processing on that image, write it
out, goto next image.

Russell
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Unable to allocate memory
Next Topic: LABEL_REGION on large array --> segmentation fault, please HELP !!

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

Current Time: Wed Oct 08 19:27:33 PDT 2025

Total time taken to generate the page: 0.00421 seconds