Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.
James Kelly from here and Tom Whittaker have been mucking around with adding Text support to the text file loader (it currently only supports RealTypes, they are adding TextType). I found that running a demo in jython (see Toms email 29 Jan 2001) doesn't work very well with the experimental text support. Part of the problem is that visad.ss.MappingDialog does not have the text types displayed. This is due to what seems to be a fault in visad.util.DataUtility.parseScalar() which really only parses RealTypes. I can fix this, but then MappingDialog falls over. It all starting looking bad, so I stopped. It's possible that TextType support is a bit thin in some areas. Is this worth fixing? (we at BoM would like it working :) jython spits out this straight away: java.lang.ClassCastException: visad.TextType at visad.ss.SSCellImpl.doAction(SSCellImpl.java:170) at visad.ActionImpl.run(ActionImpl.java:228) at visad.util.ThreadPool$ThreadMinnow.run(ThreadPool.java:92) And if I click on Mapping I get: Exception occurred during event dispatching: java.lang.ClassCastException: visad.TextType at visad.ss.MappingDialog.<init>(MappingDialog.java:446) at visad.ss.FancySSCell.addMapDialog(FancySSCell.java:473) at visad.python.JPythonMethods$1.actionPerformed(JPythonMethods.java:245) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450) at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1504) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:216) at java.awt.Component.processMouseEvent(Component.java:3715) at java.awt.Component.processEvent(Component.java:3544) at java.awt.Container.processEvent(Container.java:1165) at java.awt.Component.dispatchEventImpl(Component.java:2593) at java.awt.Container.dispatchEventImpl(Container.java:1214) at java.awt.Component.dispatchEvent(Component.java:2497) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2452) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2217) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2126) at java.awt.Container.dispatchEventImpl(Container.java:1201) at java.awt.Window.dispatchEventImpl(Window.java:912) at java.awt.Component.dispatchEvent(Component.java:2497) at java.awt.EventQueue.dispatchEvent(EventQueue.java:333) at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:103) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:84) thanks for your ideas/help, Andrew. -- Andrew Donaldson Email: A.Donaldson@xxxxxxxxxx Bureau of Meteorology Phone: +61 3 9669 4537 P.O. Box. 1289K/150 Lonsdale St, Fax: +61 3 9669 4128 Melbourne, Australia.
visad
archives: