from visad import Real from visad.python.JPythonMethods import * degC = makeUnit("degC"); tc = getRealType("tempsC",degC); t2 = Real(tc,10.); k = getRealType("kelvin",SI.kelvin); t1 = Real(k,255.); sum = t1 + t2 print "sum =",sum,sum.getUnit() print "sum =",sum.getValue(degC),degC