X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 16 Apr 2020 08:53 AM by  Parth Bhatt
Mask Error in ENVI 5.3.1
 6 Replies
Sort:
You are not authorized to post a reply.
Author Messages

Parth Bhatt



New Member


Posts:3
New Member


--
02 Apr 2020 01:00 PM
    Dear All,
    I am trying to mask a stacked image (22 GB size) and when I try to do the Band Threshold to ROI and apply Min Thresh Value, it gives me an error saying "Unable to allocate memory:to make array" The result may be invalid.
    My computer has 64GB of RAM (Intel Xenon (R) Silver 4114 CPU @2.20 GHz, 10 cores.

    Kindly help me with this.

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    03 Apr 2020 06:30 AM
    ROIs are held in memory in double precision, regardless of the data type of the image. If you are creating a large ROI in double precision, then you can run into memory issues.
    Your system may have 64GB of RAM, but a large portion of that is utilized by the OS and it is not *contiguous* memory which is required to store a large array in memory. You can try a reboot and then launch *only* ENVI to limit memory usage and fragmentation and try the process but it is likely you will need to reduce the size of the ROI or image.

    Parth Bhatt



    New Member


    Posts:3
    New Member


    --
    15 Apr 2020 04:16 PM
    Hi Mari,
    I tried with the subset and still got the same error (If I go smaller then the current one it'll be too many subsets).
    Is there any other way to work around with this? I am stuck on this from past few days, kindly help me!

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    16 Apr 2020 08:13 AM
    You could try making a mask using the same thresholds and then create the ROI from the mask band.

    Parth Bhatt



    New Member


    Posts:3
    New Member


    --
    16 Apr 2020 08:18 AM
    Can you kindly guide me how to do that? As I don't have that extensive experience using ENVI.
    It would be great if we can talk over email. ppbhatt@mtu.edu

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    16 Apr 2020 08:41 AM
    You can submit a support incident through Technical Support. You will be required to provide a license number that is current on maintenance or work through your license administrator at your institution.

    Parth Bhatt



    New Member


    Posts:3
    New Member


    --
    16 Apr 2020 08:53 AM
    I tried emailing on your mail and a reply came back from the Harris team I have given them the installation number. Hope that works!
    You are not authorized to post a reply.