X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 03 Apr 2017 03:16 AM by  anon
Advanced use of idlpy bridge: open-close license management
 0 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:24
New Member


--
03 Apr 2017 03:16 AM
    Hi all, i have a python script that calls and executes some python function making idl processes following the IDL.run('instruction') syntax. More in detail, i have a set of function making "radiometric correction", "pansharpening" "layer stacking", and so on. I make the import of idlpy module ad the begin of my file. The problem is that license remains busy throughout the execution duration. I try also to make the import only from the function. There is a way to import the idlpy module at the start of a particular function(eg. for radiometric correction), then end the license utilisation and import again the idlpy module at the next function (eg. pansharpening)? my code is something like: from idlpy import * def idl_RadCorrection(inpu1, input2): IDL.input1=input1 IDL.input2 = input2 IDL.run('first instruction') IDL.run('second instruction') def idl_GramSchimdtPanSharpening(input1, input2): IDL.input1 = input1 IDL.input2 = input2 IDL.run('first instruction') IDL.run('second Instruction') and the main: def idl_RadCorrection(inpu1, input2) def idl_GramSchimdtPanSharpening(input1, input2) My need is to start idl license for the first function (Rad Corr), run it, close idl, do something, start idl again, run second function (Pan Sharpening), close IDL, and so on.... Any suggestion?
    You are not authorized to post a reply.