X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 14 Jan 2009 08:38 AM by  anon
Creating a big 2D array in ENVI batch mode
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:11
New Member


--
14 Jan 2009 08:38 AM
    I asked the same question ITTVIS technical support but this topic might be interesting for the whole community as well. I use a quite big 2d array (15000*20000) in batch mode routine that suppose to use ENVIs libraries (ENVI_DOIT). ns=15000 nl=20000 D = make_array(ns,nl, /double) and then even before any processing step I get following message: % Unable to allocate memory: to make array. Not enough space So the question is that - did I reach some array's limitations and there is another way to define such an array. For a smaller array/image the program works properly

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    14 Jan 2009 01:15 PM
    This has a lot to do with the amount of *continguous* memory that is available to you on your OS.  If you are on Windows 32-bit, it is not at all unusual to have memory that is fragmented very quickly.  When you request an array of that size (15000x20000x8=2,400,000,000), it is unlikely there will be sufficient memory space to hold it.
    You are not authorized to post a reply.