from visad import Real, SI from visad.python.JPythonMethods import * k = getRealType("kelvin", SI.kelvin) t2 = Real(k, 273) t1 = Real(k, 255) sum = t1 + t2 print "sum =",sum,sum.getUnit()