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.
Hi Patrick, > I want to put two indepented variables on the same 2D display. The > ScalarMap to Display.Hue is used to represent the expection- and the > ScalarMap to Display.Saturation is used to represent the error > values. As I've written in my last mail I want to convert this HSV values > back to RGB. How can I generate the arrays of HSV values without using the > Display.HSV ? Or is there another solution to pass the values to the > toReference() method ? Your ScalarMaps of exp to Hue and err to Saturation will accomplish that, inside the display. That is, exp and err values will be linearly scaled to Hue and Saturation values, according to any calls you make to ScalarMap.setRange(), and the resulting HSV values converted internally to RGB for display on the screen. If you want explicit access to these value in your aplication, you could write code to linearly scale exp and err values to Hue and Saturation, supply a constant default Value value, combine these to create HSV values, then convert to RGB using visad/HSVCoordinateSystem.java. If you do not need explicit access to the RGB values, but only want them to appear on the screen, then VisAD will do that internally. All you need to supply is the ScalarMaps and the raw data. Cheers, Bill ---------------------------------------------------------- Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI 53706 hibbard@xxxxxxxxxxxxxxxxx 608-263-4427 fax: 608-263-6738 http://www.ssec.wisc.edu/~billh/vis.html
visad
archives: