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.
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: ShadowType.testIndices 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) -> Green))) 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 visad/Tuple.java: 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 soon. 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
visad
archives: