NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

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



  • 1999 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: