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

p.s., Re: "drawing" grid lines on a surface

On Tue, 11 Feb 2003, Bill Hibbard wrote:

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

One easy way to do this is with the changeMathType()
method of Data (and inherited by Field). You also do
it with virtually no extra memory use by constructing
a second Field with the second MathType and the same
domain Set, and calling setSamples() for both Fields
with the same float[][] array and copy = false.


 
 
  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