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

Re: "drawing" grid lines on a surface

Hi Donna,

> I'm trying to figure out the most sensible way to do something. I have a
> surface in 3D space,
> which may be either an Irregular2DSet or a Linear2DSet (onto which the
> Irregular2DSet has been
> sampled). A "data" variable determines height of the surface.
>
> I'd like to "draw" grid lines that follow the surface at particular x or y
> values; this would enable someone
> looking at it to better figure out which parts of the surface relate to
> which x and y values.  Other than
> drawing a bunch of independent "lines" and adding them to the Display
> (which seems a bit
> unwieldy), I haven't come up with any brilliant ideas. Is there a sensible
> way to do this? Is there
> a simple way to create a grid of *lines*, give them a height (or z) value
> by sampling the data set onto them, and
> then display that?

One easy way to do is with ScalarMaps x -> IsoContour
and y -> IsoContour. We usually think of contouring
dependent variables, but VisAD will also contour
independent variables x and y in your Field's MathType
((x, y) - > z). With a 2-D domain Set, the contours will
be contour lines.

I am not sure what the effect will be of contouring
two independent variables x and y simultaneously. If
this causes a problem, you could replicate the Field
with a different MathType ((x2, y2) -> z), and use
ScalarMaps x -> IsoContour and y2 -> IsoContour. But
try the easier approach first.

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