Ok, the problem is the following:
i have a python script that calls and executes some python functions 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 at the begin of my file. The problem is that license remains busy throughout the execution duration.
I try also to make the import of idlpy only from inside each method.
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?
|