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