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

Re: can visad do...THIS?

Hi Rick,

> when i tried to do this in visad before, i managed to get displays that
> showed topography, and could get a display color-coding the water, but i
> couldn't map the latter onto the former as seen here.
> 
> am i working against the grain of visad here? if not, can somebody
> suggest an initial line of investigation?

If your topography and water are in two separate FlatFields
with MathTypes:

  ((x, y) -> elevation)

and:

  ((x, y) -> water_depth)

Then you can merge these using the static method of FieldImpl:

    public static Field combine( Field[] fields )

to get a FlatField with MathType:

  ((x, y) -> (elevation, water_depth))

Now if you use ScalarMaps:

  x -> XAxis
  y -> YAxis
  elevation -> ZAxis
  water_depth -> RGB

you should get the display you want.

Good luck,
Bill


 
 
  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