Ejemplo n.º 1
0
def run_imarithGeneral(op1,op2,oper,outname,customRun=False):

    # This resets the parameters of imutil.imarith.
    imutil.imarith.unlearn()
    imutil.imarith.divzero=0.0
    # appends [1] to end of dividend image since that's where data lives
    
    # This runs imutil.imarith
    imutil.imarith(operand1=op1,op=oper,operand2=op2,result=outname)    
Ejemplo n.º 2
0
def run_imarith(dividend,divisor,quotient,customRun=False):
    # This resets the parameters of imutil.imarith.
    imutil.imarith.unlearn()
    imutil.imarith.divzero=0.0
    # appends [1] to end of dividend image since that's where data lives
    dividend = dividend+'[1]'

    # This runs imutil.imarith
    imutil.imarith(operand1=dividend,op='/',operand2=divisor,result=quotient)