X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 17 May 2016 01:19 PM by  anon
envipy.RunTool() - Unable to allocate memory error
 0 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
17 May 2016 01:19 PM
    Hello, I'm trying to call an ENVI plugin (ASTER Preprocessing Toolkit) from a Python script in ArcMap, and I get the following error: Running script Script1... Starting ENVI process. Error: Failed to run IDL pro code: convert_aster_l1b. Unable to allocate memory: to make array. Completed script Script1... Failed to execute (Script1) The Python script is: import envipy, arcpy # get tool parameters FILE = arcpy.GetParameterAsText(0) OUT_DIR = arcpy.GetParameterAsText(1) #Call plugin envipy.RunTool('CONVERT_ASTER_L1B', [], FILE, OUT_DIR) The tool runs fine when I access it from the ENVI menu or call it from the idl prompt with the same parameters, so I assume I have enough memory in reality. I was wondering whether I'm missing something with memory management in envipy? My system is ENVI 5.2, ArcMap 10.1, Python 2.7, Windows 7 Enterprise edition Service Pack 1 64 bit. Many thanks for your help!
    You are not authorized to post a reply.