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

[IDV #BFJ-629522]: help with error when using simple difference



Hi Jason,

I'd say you nailed the problem yourself and the IDV gave you an accurate
message: incompatible units.

For starters, you're gonna have to make the vertical coordinate system of these
data compatible if you want to do this calculation.

Best,

Unidata IDV Support

> Full Name: Jason Warren
> Email Address: address@hidden
> Organization: self
> Package Version: 5.3 build date:2016-05-23 19:17 UTC
> Operating System: Windows 8.1
> Hardware: Java: home: C:\Program Files\IDV_5.3\jre version: 1.8.0_45 
> j3d:1.6.0-pre9-daily-experimental daily
> Description of problem:
> 
> I am trying to create height anomaly maps using cfsv2 data and current gfs
> data using the simple difference formula.  I receive the following error:
> 
> Creating display: Color-Filled Contour Plan View
> visad.UnitException: visad.UnitException
> visad.UnitException
> 
> The units in the cfsv2 dataset are m by default, and Pa by default in
> the gfs dataset.  I have tried to reset the default parameters, but I
> am still getting this error.
> 
> Any assistance you could provide would be appreciated.
> 
> Please let me know if you need any additional information from me.
> 
> ******************
> Stack trace:
> visad.UnitException
> at visad.RealType.binary(RealType.java:474)
> at visad.RealTupleType.binary(RealTupleType.java:287)
> at visad.FunctionType.binary(FunctionType.java:271)
> at visad.FunctionType.binary(FunctionType.java:271)
> at visad.DataImpl.binary(DataImpl.java:141)
> at ucar.unidata.data.grid.GridMath.binary(GridMath.java:370)
> at ucar.unidata.data.grid.GridMath.doMath(GridMath.java:350)
> at ucar.unidata.data.grid.GridMath.subtract(GridMath.java:176)
> 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:496)
> at org.python.core.PyObject.__call__(PyObject.java:500)
> at org.python.pycode._pyx68.sub$6(<string>:63)
> at org.python.pycode._pyx68.call_function(<string>)
> at org.python.core.PyTableCode.call(PyTableCode.java:167)
> at org.python.core.PyBaseCode.call(PyBaseCode.java:307)
> at org.python.core.PyBaseCode.call(PyBaseCode.java:145)
> at org.python.core.PyFunction.__call__(PyFunction.java:423)
> at org.python.pycode._pyx83.f$0(<string>:1)
> at org.python.pycode._pyx83.call_function(<string>)
> at org.python.core.PyTableCode.call(PyTableCode.java:167)
> at org.python.core.PyCode.call(PyCode.java:18)
> at org.python.core.Py.runCode(Py.java:1386)
> at org.python.core.__builtin__.eval(__builtin__.java:497)
> at org.python.core.__builtin__.eval(__builtin__.java:501)
> at org.python.util.PythonInterpreter.eval(PythonInterpreter.java:251)
> at ucar.unidata.data.DerivedDataChoice.getData(DerivedDataChoice.java:795)
> at ucar.unidata.data.DataChoice.getData(DataChoice.java:628)
> 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:294)
> at 
> ucar.unidata.idv.control.DisplayControlImpl.initializeDataInstance(DisplayControlImpl.java:3319)
> at 
> ucar.unidata.idv.control.DisplayControlImpl.setData(DisplayControlImpl.java:3275)
> at ucar.unidata.idv.control.PlanViewControl.setData(PlanViewControl.java:664)
> at 
> ucar.unidata.idv.control.ContourPlanViewControl.setData(ContourPlanViewControl.java:195)
> at ucar.unidata.idv.control.PlanViewControl.init(PlanViewControl.java:489)
> at 
> ucar.unidata.idv.control.DisplayControlImpl.init(DisplayControlImpl.java:1441)
> at 
> ucar.unidata.idv.control.DisplayControlImpl.init(DisplayControlImpl.java:1124)
> 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:1243)
> 
> 
> 


Ticket Details
===================
Ticket ID: BFJ-629522
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.