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

Re: Example of 2D surface animation

On Tue, 7 Dec 2004, Adityarajsingh Santokhee wrote:

> > You can see temps moving on a constant surface if you use
> > the same values for "z" in all time steps. You can reuse
> > the same float[] array of "z" values in the range float[][]
> > for each time step.
>
>
> I have in fact kept the "z" values constant. What I wanted to say is that the
> lat-lon surface is actually moving along the longitude axis with each
> timestep.

This was the subject of our exchnage last week, when I suggested
that the statement:

  float[][] set_samples = domain_set.getSamples( false );

might be the problem. The set_samples array was not referenced
anywhere else in the code you sent, but the copy = false argument
makes this suspiscious in case you write any values into the
set_samples array. Did you look into this? I recommend replacing
"false" with "true" in this statement - that may fix it.

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