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

Re: beginner's questions

Hi Xinman,

I'm in the UK and can only answer briefly.  Study these
Sections of the VisAD Developers Guide:

  3.1.14 Application Example: Synthesizing MathTypes
  3.2.14 Application Example: Synthesizing Fields

and also visad/examples/Test03.java.

You need to Construct a FunctionType:

  (RealType.Time -> temperature)

and use DateTime to help construct a Linear1DSet for your
dates/times (which appear to be evenly spaced - if they
weren't you'd construct a Gridded1DDoubleSet instead of
the Linear1DSet).

Then construct a FlatField from these, and call setSamples()
to put your temperature values in it.

Then construct a DisplayImplJ3D (or DisplayImplJ2D), link
it to your FlatField (as in Test03.java or any other
example), and construct ScalarMaps:

  ScalarMap(RealType.Time, Display.XAxis)
  ScalarMap(temperature, Display.YAxis)

and addMap() these to the DisplayImplJ*D.  Study the guide
and the examples, and hopefully it will become clear.

Cheers,
Bill
----------------------------------------------------------
Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI  53706
hibbard@xxxxxxxxxxxxxxxxx  608-263-4427  fax: 608-263-6738
http://www.ssec.wisc.edu/~billh/vis.html



 
 
  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