Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

Re: Some questions about VisAD

Hi Romaric,

> I have two little (very little ! ) questions for you :
>
> 1) There are a few units in the library (class SI) : ampere, candela, kelvin 
> ... but i want Hertz unit, how can I do it please ?
> Actually, i procced like that :
> Unit hertz, unite;
> unite = SI.second.divide(SI.second);
> hertz = unite.divide(SI.second);
> RealType Frequence = RealType.getRealType("Frequence", hertz, null);
>
> But it displays "s-1" on the screen... and I want "Hz"....

Try:

  Unit cycles = CommonUnit.dimensionless.divide(CommonUnit.second);
  Unit hz = cycles.clone("Hz");
  RealType count = RealType.getRealType("count", hz);

> 2) A little bit difficult now  :
> I would like to increase the graph to change the dimensions of this one. ( I 
> used the Rivers.java example), can you help me ?

I am not sure what you mean. To change Rivers.java from two to
three dimensions, change 'RealTupleType earth' to use three
component RealTypes, and change the Gridded2DSets to
Gridded3DSets.

Good luck,
Bill


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