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

[IDV #SJK-116567]: Error when generating volume rendering



Norhakim,

I have spent some time looking at your file, and from what I can tell it has
quite a few problems.

For starters, you'll need a missing_value attribute (see attached NCML).

Second, there are only non-missing data at 1012, 1009 hPa levels. Is this really
correct?

Third, the file claims to use CF 1.6. Make sure you are using the CF convention
correctly with respect to time. No times are defined in your file. (I am not
exactly sure what the CF conventions says here, but it looks suspicious.)

Fourth, you have a data level at 98 hPa. Is this really correct?

Take some time looking at your data, and before doing a "Volume Rendering",
please try some simpler plots to see if your data are as you expect. I find that
IDV "Value Plots" are really handy in situations where I am debugging the data.

Keep us up-to-date on your progress.

Best,

Unidata IDV Support

> Full Name: Norhakim Yusof
> Email Address: address@hidden
> Organization: University of Twente
> Package Version: 5.1u2 build date:2015-04-12 07:07 UTC
> Operating System: Windows 7
> Hardware: Java: home: C:\Program Files\IDV_5.1u2\jre version: 1.7.0_51 
> j3d:1.6.0-pre9-daily-experimental daily
> Description of problem:
> 
> I'm got an error when I want to visualize my generated netcdf data
> using the volume rendering tool. My netcdf file contain three dimensions
> comprise of level(pressure level), latitude and longitude. In addition,
> I have two variables namely, u and v  which I want to derive wind speed
> using these  variables. In order to generate the volume of wind speed,
> I have selected Speed(from u&v) from Derived (under 3D grid in Fields)
> and then, select Volume Rendering (under Displays). In Level tab, I
> have selected all pressure levels. The error pop up when I click Create
> Displey and telling :
> 
> Creating display: Volume Rendering
> java.lang.ClassCastException: java.lang.ClassCastException: visad.Real cannot 
> be cast to visad.FlatField
> visad.Real cannot be cast to visad.FlatField
> 
> So, far I don't have any clue what goes wrong with my data. I believe
> this, msg is derived from java code (which I'm not fimiliar with java). I
> really appreciate if you can provide me some guides or discribe that cause
> this problem (from the data) so I could fully utilized this software to
> visualize my data. Please find attached the data that I used.
> 
> Thank you
> 
> Kind regards
> Norhakim Yusof
> PhD student
> University of Twente
> 
> 
> ******************
> Stack trace:
> java.lang.ClassCastException: visad.Real cannot be cast to visad.FlatField
> at 
> ucar.unidata.data.grid.DerivedGridFactory.createVectorMagnitude(DerivedGridFactory.java:1553)
> at 
> ucar.unidata.data.grid.DerivedGridFactory.createWindSpeed(DerivedGridFactory.java:1477)
> 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._pyx68.f$0(<string>:1)
> at org.python.pycode._pyx68.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.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:299)
> at 
> ucar.unidata.idv.control.DisplayControlImpl.initializeDataInstance(DisplayControlImpl.java:3278)
> at 
> ucar.unidata.idv.control.DisplayControlImpl.setData(DisplayControlImpl.java:3234)
> at 
> ucar.unidata.idv.control.VolumeRenderControl.setData(VolumeRenderControl.java:205)
> at 
> ucar.unidata.idv.control.VolumeRenderControl.init(VolumeRenderControl.java:124)
> 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: SJK-116567
Department: Support IDV
Priority: Normal
Status: Closed

Attachment: mynetcdf.ncml
Description: Binary data


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.