This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Paul, To reiterate, you must choose the CAPE and mixing ratio that are available under the 3D fields. Please keep us up-to-date on your progress. Best wishes, Unidata IDV Support > Hi Unidata Support, > > I have found the problem is also occurring when I choose to plot the > surface Mixing Ratio by itself. > > Paul > > > On 27 September 2013 07:34, Paul Graham <address@hidden> wrote: > > > Hi Unidata Support, > > > > Is it because I chose the 2D (surface) fields for CAPE and Mixing Ratio > > that caused this error? > > > > Thanks, > > > > Paul Graham > > > > > > address@hidden> wrote: > > > >> Paul, > >> > >> We are successfully able to view your formula in the IDV. CAPE and mixing > >> ratio are available under 2D and 3D in the IDV Field Selector. Make sure > >> you select the 3D fields for CAPE and mixing ratio. > >> > >> Please keep us up-to-date on your progress. > >> > >> Best wishes, > >> > >> Unidata IDV Support > >> > >> > Dear Unidata Support, > >> > > >> > I was trying to multiply CAPE and the surface Mixing Ratio (derived > >> > quantity in this data set). > >> > > >> > Any ideas as to what has gone wrong? > >> > > >> > Thanks, > >> > > >> > Paul > >> > > >> > > >> > address@hidden> wrote: > >> > > >> > > Dear Paul, > >> > > > >> > > Can you explain a bit more about what you are trying to do here? I was > >> > > able to get your formula to work for some GFS data. What fields are > >> you > >> > > trying to multiply? You can upload a sample data set at > >> > > http://motherlode.ucar.edu/repository/alias/idvupload. > >> > > > >> > > Best Wishes, > >> > > > >> > > Unidata IDV Support > >> > > > >> > > > Full Name: Paul Graham > >> > > > Email Address: address@hidden > >> > > > Organization: Weathersim > >> > > > Package Version: 4.1u1 build date:2013-09-25 07:05 UTC > >> > > > Operating System: Linux > >> > > > Hardware: Java: home: /usr/local/bin/IDV_4.1u1/jre version: 1.6.0_41 > >> > > j3d:1.5.2 fcs (build4) > >> > > > Description of problem: Error occurs when using simple Jython > >> method to > >> > > multiply two different fields together: > >> > > > > >> > > > def mulFields(F1,F2): > >> > > > return mul(F1,F2) > >> > > > > >> > > > Creating display: Color-Filled Contour Plan View > >> > > > java.lang.ClassCastException: java.lang.ClassCastException: > >> > > visad.LinearLatLonSet cannot be cast to visad.Gridded3DSet > >> > > > visad.LinearLatLonSet cannot be cast to visad.Gridded3DSet > >> > > > > >> > > > ****************** > >> > > > Stack trace: > >> > > > java.lang.ClassCastException: visad.LinearLatLonSet cannot be cast > >> to > >> > > visad.Gridded3DSet > >> > > > at > >> > > > >> ucar.unidata.data.grid.DerivedGridFactory.createPressureGridFromDomain(DerivedGridFactory.java:3185) > >> > > > at > >> > > > >> ucar.unidata.data.grid.DerivedGridFactory.createMixingRatio(DerivedGridFactory.java:2455) > >> > > > 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) > >> > > > at > >> > > > >> org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:186) > >> > > > at > >> > > > >> org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:204) > >> > > > at org.python.core.PyObject.__call__(PyObject.java:404) > >> > > > at org.python.core.PyObject.__call__(PyObject.java:408) > >> > > > at org.python.pycode._pyx115.f$0(<string>:1) > >> > > > at org.python.pycode._pyx115.call_function(<string>) > >> > > > at org.python.core.PyTableCode.call(PyTableCode.java:165) > >> > > > at org.python.core.PyCode.call(PyCode.java:18) > >> > > > at org.python.core.Py.runCode(Py.java:1261) > >> > > > at org.python.core.__builtin__.eval(__builtin__.java:484) > >> > > > at org.python.core.__builtin__.eval(__builtin__.java:488) > >> > > > at > >> org.python.util.PythonInterpreter.eval(PythonInterpreter.java:190) > >> > > > at > >> > > > >> ucar.unidata.data.DerivedDataChoice.getData(DerivedDataChoice.java:787) > >> > > > at > >> > > > >> ucar.unidata.data.DerivedDataChoice.setData(DerivedDataChoice.java:635) > >> > > > at > >> > > > >> ucar.unidata.data.DerivedDataChoice.collectOperands(DerivedDataChoice.java:586) > >> > > > at > >> > > > >> ucar.unidata.data.DerivedDataChoice.getData(DerivedDataChoice.java:738) > >> > > > at ucar.unidata.data.DataChoice.getData(DataChoice.java:637) > >> > > > at ucar.unidata.data.DataInstance.getData(DataInstance.java:243) > >> > > > at ucar.unidata.data.DataInstance.getData(DataInstance.java:207) > >> > > > at > >> > > > >> ucar.unidata.data.grid.GridDataInstance.init(GridDataInstance.java:206) > >> > > > at > >> > > > >> ucar.unidata.data.grid.GridDataInstance.<init>(GridDataInstance.java:163) > >> > > > at > >> > > > >> ucar.unidata.data.grid.GridDataInstance.<init>(GridDataInstance.java:144) > >> > > > at > >> > > > >> ucar.unidata.idv.control.GridDisplayControl.doMakeDataInstance(GridDisplayControl.java:284) > >> > > > at > >> > > > >> ucar.unidata.idv.control.DisplayControlImpl.initializeDataInstance(DisplayControlImpl.java:3224) > >> > > > at > >> > > > >> ucar.unidata.idv.control.DisplayControlImpl.setData(DisplayControlImpl.java:3206) > >> > > > at > >> > > > >> ucar.unidata.idv.control.PlanViewControl.setData(PlanViewControl.java:641) > >> > > > at > >> > > > >> ucar.unidata.idv.control.ContourPlanViewControl.setData(ContourPlanViewControl.java:194) > >> > > > at > >> > > > >> ucar.unidata.idv.control.PlanViewControl.init(PlanViewControl.java:471) > >> > > > at > >> > > > >> ucar.unidata.idv.control.DisplayControlImpl.init(DisplayControlImpl.java:1421) > >> > > > at > >> > > > >> ucar.unidata.idv.control.DisplayControlImpl.init(DisplayControlImpl.java:1106) > >> > > > at > >> > > > >> ucar.unidata.idv.ControlDescriptor.initControl(ControlDescriptor.java:986) > >> > > > at > >> ucar.unidata.idv.ControlDescriptor$1.run(ControlDescriptor.java:911) > >> > > > at ucar.unidata.util.Misc$3.run(Misc.java:1251) > >> > > > > >> > > > > >> > > > > >> > > > >> > > > >> > > Ticket Details > >> > > =================== > >> > > Ticket ID: YGJ-893554 > >> > > Department: Support IDV > >> > > Priority: Normal > >> > > Status: Closed > >> > > > >> > > > >> > > >> > > >> > -- > >> > Paul Graham > >> > Email: address@hidden > >> > Mobile: 0403003784 > >> > > >> > > >> > >> > >> Ticket Details > >> =================== > >> Ticket ID: YGJ-893554 > >> Department: Support IDV > >> Priority: Normal > >> Status: Closed > >> > >> > > > > > > -- > > Paul Graham > > Email: address@hidden > > Mobile: 0403003784 > > > > > > -- > Paul Graham > Email: address@hidden > Mobile: 0403003784 > > Ticket Details =================== Ticket ID: YGJ-893554 Department: Support IDV Priority: Normal Status: Closed