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.

Re: absolute or relative color tables? - more

  • Subject: Re: absolute or relative color tables? - more
  • From: Stuart Wier <wier@xxxxxxxxxxxxxxxx>
  • Date: Wed, 02 Aug 2000 08:37:07 -0600
> 
> > How do I make a color table or ColorControl so that there
> > is a connection between a particular color and a particular data
> > value or a range of data values?
> >
> > So far as I know a color table in VisAD spans whatever values are displayed.
> > Two displays of the same parameter (but different max and mins)
> > have differing colors for the same parameter value; very confusing.
> >
> 
> This mapping is determined by the low and high values passed
> to ScalarMap.setRange(), and by the 'float[][] table' array
> passed to BaseColorControl.setTable().  The table values
> (length = table[0].length) are distributed evenly over the
> (low, high) range.  If an application does not call setRange(),
> then the range is determined by the range of values in
> displayed data objects.
> 

So there is no way to say "make data values of 0.0 always blue 
wherever they occur"?

A more complex case is where you don't want colors evenly distributed
over the low, high range.  For example, having a special and
rapidly changing list of distinctive colors associated with a narrow
range of data values of primary interest, imbedded in a larger (low, high) range
of lesser interest?  For example in medical imagery
where you want to highlite a particular signal value.


Stu Wier    

Unidata Program Center
UCAR
P.O. Box 3000
Boulder, CO 80307

Unidata home page: http://www.unidata.ucar.edu/
Metapps and UMADA: http://www.unidata.ucar.edu/community/committees/umada/


  • 2000 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: