Hi Devanshee,
> I want to map "red" color to (40C to 50C). "Orange" to (30C to 40C).
You can use a stepwise color table.
Take a look at Test33 in the VisAD examples:
https://github.com/visad/visad/blob/master/examples/src/Test33.java
1) Make a ScalarMap to RGB.
2) Add the map to the display via the addMap method.
3) Get the BaseColorControl by calling getControl() on that ScalarMap.
4) Create a stepwise RGB color table dimensioned float[3][256].
5) Assign the color table via the BaseColorControl's setTable method.
Regards,
Curtis
On Tue, Apr 15, 2014 at 1:24 PM, Devanshee Prajapati <
devanshee@xxxxxxxxxxxxxx> wrote:
> On Tuesday, April 15, 2014 10:16 PM, Devanshee Prajapati <
> devanshee@xxxxxxxxxxxxxx> wrote:
> Hi everyone,
>
> I want to know that whether is it possible to map specific color to
> specific class of range values??
>
> For Example: My range is Temperature.
> And I want to map "red" color to (40C to 50C).
> "Orange" to (30C to 40C ).
> And then the mapping should be modified by user.
>
> Currently I am using static mapping, which is provided in visAD Tutorials
> by Ugo Taddei.
> In which mapping occurs automatically.
>
> But I think there must be a way to be more specific by giving range like
> this.
>
> ThankYou.
>
> _______________________________________________
> visad mailing list
> visad@xxxxxxxxxxxxxxxx
> For list information, to unsubscribe, visit:
> http://www.unidata.ucar.edu/mailing_lists/
>
>