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

[IDV #GCX-559770]: units problem despite NASA adding units



> Full Name: brian mapes
> Email Address: address@hidden
> Organization: UM
> Package Version: 5.0u2 build date:2014-10-08 07:05 UTC
> Operating System: Mac OS X
> Hardware: Java: home: /Applications/IDV_5.0u2/jre.bundle/Contents/Home/jre 
> version: 1.7.0_67 j3d:1.6.0-pre9-daily-experimental daily
> Description of problem: Here's a lovely dataset whose shortcomings I have 
> been fixing with ncml.
> NASA kindly added units which it lacked before, but IDV still chokes somehow.
> Is the RH unit "fraction" the problem? Or what?
> 

Brian,
     The RH unit should "%" and you need to add another attribute since it is 
actually "fraction" :

<attribute name="scale_factor" type="float" value="100" />

Yuan
> Could there be a global IDV setting for VisAD to ignore units, or presume MKS 
> units, or prompt for user input about them, or something? I find this a very 
> frustrating barrier to widespread IDV acceptance in my group and surely 
> beyond. These error messages are so unhelpful.
> 
> 
> Creating display: Grid Skew-T
> visad.TypeException: visad.TypeException: MathType of data object 
> (((lon[unit:degrees_east], lat[unit:degrees_north], lev[unit:millibar]) -> 
> Generic_1_nullUnit)) is incompatible with required MathType 
> (SaturationVaporPressure)
> MathType of data object (((lon[unit:degrees_east], lat[unit:degrees_north], 
> lev[unit:millibar]) -> Generic_1_nullUnit)) is incompatible with required 
> MathType (SaturationVaporPressure)
> 
> ******************
> Stack trace:
> visad.TypeException: MathType of data object (((lon[unit:degrees_east], 
> lat[unit:degrees_north], lev[unit:millibar]) -> Generic_1_nullUnit)) is 
> incompatible with required MathType (SaturationVaporPressure)
> at ucar.visad.Util.vetType(Util.java:287)
> at 
> ucar.visad.quantities.SaturationVaporPressure.createTemperature(SaturationVaporPressure.java:418)
> at 
> ucar.unidata.data.grid.DerivedGridFactory.makeDewpointFromTAndRH(DerivedGridFactory.java:2110)
> at 
> ucar.unidata.data.grid.DerivedGridFactory.createDewpoint(DerivedGridFactory.java:2055)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> 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._pyx69.f$0(<string>:1)
> at org.python.pycode._pyx69.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:795)
> at ucar.unidata.data.DerivedDataChoice.setData(DerivedDataChoice.java:643)
> at 
> ucar.unidata.data.DerivedDataChoice.collectOperands(DerivedDataChoice.java:547)
> at ucar.unidata.data.DerivedDataChoice.getData(DerivedDataChoice.java:746)
> 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.DataInstance.dataOk(DataInstance.java:295)
> at 
> ucar.unidata.idv.control.DisplayControlImpl.checkIfDataOk(DisplayControlImpl.java:3169)
> at 
> ucar.unidata.idv.control.DisplayControlImpl.initializeDataInstance(DisplayControlImpl.java:3312)
> at 
> ucar.unidata.idv.control.DisplayControlImpl.setData(DisplayControlImpl.java:3234)
> at 
> ucar.unidata.idv.control.GriddedSoundingControl.init(GriddedSoundingControl.java:162)
> at 
> ucar.unidata.idv.control.DisplayControlImpl.init(DisplayControlImpl.java:1402)
> at 
> ucar.unidata.idv.control.DisplayControlImpl.init(DisplayControlImpl.java:1085)
> 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: GCX-559770
Department: Support IDV
Priority: Normal
Status: Closed