[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[IDV #NSG-102647]: Formula problem
- Subject: [IDV #NSG-102647]: Formula problem
- Date: Wed, 01 May 2013 14:23:38 -0600
> 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