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 Ugo, I am not clear about your question about combining VisADLineArrays since I don't know where your code will construct them. However, you could construct ScalarMap smap = new ScalarMap(Precipitation, Display.Shape); display.addMap(smap); ShapeControl scontrol = smap.getControl(); scontrol.setShapeSet(new Integer1DSet(1)); // only one value VisADLineArray line = new VisADLineArray(); line.vertexCount = 2; line.coordinates = new float[] {0.0f, 0.0f, 0.0f, 0.0f, 0.1f, 0.0f}; // short line scontrol.setShapes(new VisADGeometryArray[] {line}); ScalarMap smap2 = new ScalarMap(Precipitation, Display.ShapeScale); smap2.setRaneg(0.0, max_precip); This should make the lines scale by precipitation value - every precip value maps to the same shape, but the precip value also maps to the shape scale which will control their lengths. You'll also need to map day to XAxis. Please just experiment with this a bit. 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: