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: 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


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