Re: setScaleEnable

Hi John,
Since I recall you are using the SpreadSheet, let me further
explain my last message in terms of the SpreadSheet.
Say for example that you import visad/ss/cancel.gif into cell A1.
It will have MathType:
  ((ImageElement, ImageLine) -> (Red, Green, Blue))
If you want to see surfaces for both Red and Green values
you might try mappings:
  ImageElement -> XAxis
  ImageLine -> YAxis
  Red -> ZAxis
  Green -> ZAxis
But this would give the error you reported yesterday:
  Single DisplayRealType DisplayYAxis occurs more than once:
You can fix this by entering the formula:
  link(visad.Tuple.makeTuple(extract(A1, 0), extract(A1, 1))
into another cell, which will create a data object with MathType:
  (((ImageElement, ImageLine) -> Red)), ((ImageElement, ImageLine) ->
and now the display mappings above will work.
Please note that the SpreadSheet does not yet (my oversight) have
an intrinsic syntax for constructing Tuples, so my formula will
only work after you add the following static function to
  public static Tuple makeTuple(Data[] datums)
         throws VisADException, RemoteException {
    return new Tuple(datums);
This addition will be in the next update of the VisAD source
distribution, and we'll add a syntax for constructing Tuples
Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI  53706
hibbard@xxxxxxxxxxxxxxxxx  608-263-4427  fax: 608-263-6738

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