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

[IDV #NSG-102647]: Formula problem



> Hi
> Â
> I am running IDV Version 4.0u1 (Build Date: 2013-03-29 18:10 UTC) via 
> WebStart. I have written a formula:
> Â
> (sqrt((u**2)+(v**2))*(-1.8-Ta))/(1+0.4*(Ts+1.8))
> Â
> where u is the 10m wind component in an west to east direction, v is the 10m 
> wind in a south to north direction, Ta is the 2m air temperature and Ts is 
> the surface temperature (the formula is a predictor of ship ice accretion). 
> But the calculation fails and I have cut and pasted the details below. Any 
> ideas what I may be doing wrong?
> Â
> Many thanks,
> Â
> Matt Ruglys
> Â

Hi Matt,
    The error message indicates that some variables in this formula is 2D and 
some are 3D. You probably need to wrap those 3D with a grid system fuction 
"make2D(slice)". For example, the surface temperature might be a variable like: 
T(time=10, z=1, y=60, x=100), and this function will convert it to T(time=10, 
y=60, x=100).


Yuan


Yuan
> Â
> Â
> Creating display: Color-Filled Contour Plan View
> visad.SetException: visad.SetException: Gridded3DSet.valueToGrid:
> ÂManifoldDimension must be 3
> Gridded3DSet.valueToGrid: ManifoldDimension must be
> Â3
> Â
> visad.SetException: Gridded3DSet.valueToGrid: ManifoldDimension must be 3
> Âat visad.Gridded3DSet..valueToGrid(Gridded3DSet.java:1070)
> Âat visad.Gridded3DSet.valueToIndex(Gridded3DSet.java:418)
> Âat visad.FlatField.resample(FlatField.java:4737)
> Âat visad.FlatField.binary(FlatField.java:2085)
> Âat visad.FieldImpl.binary(FieldImpl.java:836)
> Âat visad.DataImpl.binary(DataImpl.java:139)
> Âat visad.DataImpl.multiply(DataImpl.java:205)
> Âat visad.DataImpl.__mul__(DataImpl.java:1407)
> Â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.core.PyMethod.__call__(PyMethod.java:124)
> Âat org.python.core.PyMethod.__call__(PyMethod.java:115)
> Âat org.python.core.PyObjectDerived.__mul__(PyObjectDerived.java:211)
> Âat org.python.core.PyObject._basic_mul(PyObject.java:2229)
> Âat org.python.core.PyObject._mul(PyObject.java:2215)
> Âat org.python.pycode._pyx101.f$0(<string>:1)
> Âat org.python.pycode._pyx101.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.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:3178)
> Âat 
> ucar.unidata.idv.control.DisplayControlImpl.setData(DisplayControlImpl.java:3160)
> Â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:1249)
> 
> 


Ticket Details
===================
Ticket ID: NSG-102647
Department: Support IDV
Priority: Normal
Status: Closed


NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.