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.

[visad] how custom color table works in visAD?

Hello all,

I am using a custom color table in visAD.
 I know how to use it,But don't know how it works internally

suppose i have values between 1-100 (my Range in array),
then how the number of element passed in mycolorTable will affect the
result?

Eg :

 myColorTable = new float[][]{

{0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f}, //red component
{0.0f, 0.0f, 1.0f, 0.0f, 1.0f, 0.0f, 1.0f, 1.0f}, //green component
{0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f, 0.0f, 1.0f}}; //blue component

}
or

{
{ 0,255,0,0,255,0,255,192,100,255},
{ 0,0,255,0,255,255,0,192,0,255},
{ 0,0,0,255,0,255,255,192,,100,255}
}

In first example I have passed 8 arguments and in second 10 arguments are
passed.How these will be mapped or allocated to the value of my data array
which ranges between 1 and 100.
--
Thank you,
Devanshi U. Prajapati
LJIET(MCA)
  • 2014 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: