NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Thanks for both suggestions. Doug, I manage to show the range of colors, but the values specifying the range do not show. Bill, I tried to run the MultiLUT program you suggested, but I get the following error. I'm not sure what is happening. It seems as though MultiLUT.java has a main function. Can this not be run as a standalone program? Secondly, the source says I need to run it in the directory that contains SPB1.PIC... SPB17.PIC, but I can't seem to find these. Are they available anywhere? C:\visad\visad\bio>java -classpath .;c:\visad MultiLUT Exception in thread "main" java.lang.NoClassDefFoundError: MultiLUT (wrong name: visad/bio/MultiLUT) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) Thanks for all the help guys, -dave -----Original Message----- From: Bill Hibbard [mailto:billh@xxxxxxxxxxxxx] Sent: Wednesday, March 13, 2002 6:13 AM To: David Nguyen Subject: Re: Displaying RGB Map Hi David, > Is there something that simply displays the color mapping of a > ScalarMap to Display.RGB. The tutorial has examples of the > LabeledColorWidget, but that seems to be slightly more than necessary. > I do not need the ability to edit the color map like the > LabeledColorWidget allows. You can create a FlatField with a "wedge" of values and link it to your Display, prefereably at some location where it is out of the way. There is an example of this in visad/bio/MultiLUT.java - see 'FlatField wedge'. Good luck, Bill
visad
archives: