Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Specific alpha values

Hi there,

  I've got some radar data in my visad display, which I am overlaying
over a filled in map and some other stuff.  The radar data is from
a McIDAS ADDE image server.

  The bad bit is that a large black box surrounds the small amounts
of rain (radar data).
  So what I want to do is set 0 values in the radar data to be
transparent.
  This is something along the lines of mapping radarValue to ALPHA,
but not quite, as I don't want a linear relationship.. I want to
define my own function (in loose language).  This seems to be
possible with mapping samples to colours, where you get your mouse
and choose the R, G and B intensities for that sample, on a
contiguous sample space thingy.
  Can I do this for alpha?  How do I do it programatically?  I don't
want the user having to drag his mouse around just to set 'no rain'
to be transparent.

thanks in advance,

Andrew.

-- 
 Andrew Donaldson                                           
 Email:   A.Donaldson@xxxxxxxxxx                Bureau of Meteorology
 Phone:   +61 3 9669 4537            P.O. Box. 1289K/150 Lonsdale St,
 Fax:     +61 3 9669 4128                       Melbourne, Australia.


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690