[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[IDV #CNP-644177]: data type problem with power operation in Jython code



Hi HP-

> As of today your fix still is not in :'( .

The fix is there, it's just not working. :-(  I'll look into this and your 
other problem today.

Don
> Unidata IDV Support wrote:
> > Hi HP-
> >
> > My bad.  We recently updated the visad jar files and the change I made to 
> > fix the problem earlier was lost.  I just redid the nightly build with the 
> > fix included.  Please try it and let me know if it works.
> >
> > Thanks.
> >
> > Don
> >
> >
> >> Full Name: HansPeter Roesli
> >> Email Address: address@hidden
> >> Organization: EUMETSAT
> >> Package Version: 2.8a1 build date:@DATE@
> >> Operating System: Windows Vista
> >> Hardware: Java: home: C:\Program Files\IDV_2.8a1\jre version: 1.6.0_13 
> >> j3d:1.5.2 fcs (build4)
> >> Description of problem: Hi -
> >>
> >> Something must have terribly changed in the data type area in 
> >> Jython/VisAD. An RGB formula using the power operation are not working 
> >> anymore in nightly builds of 11 and 12 Nov. Here is the Jthon code of the 
> >> formula:
> >>
> >> def DUST_RGB(ch07,ch09,ch10):
> >> img1 = 255*max_data(min_data((ch10-ch09+4)/6,1),0)
> >> img2 = 255*max_data(min_data((ch09-ch07)/15,1),0)**(1/2.5)
> >> img3 = 255*max_data(min_data((ch10-261)/28,1),0)
> >> return combineRGB(img1,img2,img3)
> >>
> >> It still worked in the build of 8 Nov.
> >>
> >> HP
> >>
> >> Creating display: 3 Color (RGB) Image
> >> org.python.core.PyException
> >>
> >> ******************
> >> Stack trace:
> >> Traceback (innermost last):
> >> File "<string>", line 1, in ?
> >> File "<string>", line 205, in DUST_RGB
> >> at visad.RealType.binary(RealType.java:537)
> >>
> >> at visad.RealTupleType.binary(RealTupleType.java:295)
> >>
> >> at visad.FunctionType.binary(FunctionType.java:275)
> >>
> >> at visad.FunctionType.binary(FunctionType.java:275)
> >>
> >> at visad.DataImpl.binary(DataImpl.java:138)
> >>
> >> at visad.DataImpl.pow(DataImpl.java:231)
> >>
> >> at visad.DataImpl.__pow__(DataImpl.java:1505)
> >>
> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>
> >> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> >>
> >> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> >>
> >> at java.lang.reflect.Method.invoke(Unknown Source)
> >>
> >>
> >> java.lang.NullPointerException: java.lang.NullPointerException
> >>
> >>
> >>
> >>
> >
> >
> > Ticket Details
> > ===================
> > Ticket ID: CNP-644177
> > Department: Support IDV
> > Priority: Normal
> > Status: Open
> >
> >
> >
> 
> 


Ticket Details
===================
Ticket ID: CNP-644177
Department: Support IDV
Priority: Normal
Status: Open