Re: visad and hershey font wmo.jhf

Hi-

Bill Hibbard wrote:

Nice image. In order to replace the text with weather
symbols you'll need to replace the ScalarMap to
Display.Text with a ScalarMap to Display.Shape. See
Test46.java and Test47.java in visad/examples for
simple examples of using Shape. It is also discussed
in sections 4.3.12 and 4.7 of the VisAD Developer's
Guide. You'll pass an array of VisADGeometryArrays for
your weather symbols (from wmo.jhf) to the
setShapes() method of your ShapeControl, and pass a
1-D Set to its setShapeSet() method - this Set defines
how your numerical iso values are sampled to discrete
weather symbols.

In the IDV, we use the visad.meteorology.WeatherSymbol
class to access VisADGeometry arrays for each symbol and
then map those to Display.Shape.  If you are not using
that class, it might be helpful.

I have CC'ed the VisAD mailing list, since all technical
questions should go to the list rather than just to me.

Don
*************************************************************
Don Murray                               UCAR Unidata Program
dmurray@xxxxxxxxxxxxxxxx                        P.O. Box 3000
(303) 497-8628                              Boulder, CO 80307
http://www.unidata.ucar.edu/staff/donm
        "Time makes everyone interesting, even YOU!"
*************************************************************



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